gdm r5981 - in trunk: . daemon
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r5981 - in trunk: . daemon
- Date: Mon, 10 Mar 2008 18:10:22 +0000 (GMT)
Author: mccann
Date: Mon Mar 10 18:10:22 2008
New Revision: 5981
URL: http://svn.gnome.org/viewvc/gdm?rev=5981&view=rev
Log:
2008-03-10 William Jon McCann <jmccann redhat com>
* daemon/gdm-server.c: (_gdm_server_set_disable_tcp),
(gdm_server_set_property), (gdm_server_get_property),
(gdm_server_class_init):
Add a property for disable-tcp and default to TRUE.
Modified:
trunk/ChangeLog
trunk/daemon/gdm-server.c
Modified: trunk/daemon/gdm-server.c
==============================================================================
--- trunk/daemon/gdm-server.c (original)
+++ trunk/daemon/gdm-server.c Mon Mar 10 18:10:22 2008
@@ -770,6 +770,13 @@
}
static void
+_gdm_server_set_disable_tcp (GdmServer *server,
+ gboolean disabled)
+{
+ server->priv->disable_tcp = disabled;
+}
+
+static void
gdm_server_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -789,6 +796,9 @@
case PROP_USER_NAME:
_gdm_server_set_user_name (self, g_value_get_string (value));
break;
+ case PROP_DISABLE_TCP:
+ _gdm_server_set_disable_tcp (self, g_value_get_boolean (value));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -819,6 +829,9 @@
case PROP_USER_NAME:
g_value_set_string (value, self->priv->user_name);
break;
+ case PROP_DISABLE_TCP:
+ g_value_set_boolean (value, self->priv->disable_tcp);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -912,6 +925,13 @@
"user name",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_object_class_install_property (object_class,
+ PROP_DISABLE_TCP,
+ g_param_spec_boolean ("disable-tcp",
+ NULL,
+ NULL,
+ TRUE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]