[gdm/display-configuration] Cleanup for disable-tcp stuff. "-nolisten tcp" argument can be specified in Exec of ConsoleKit .disp
- From: Halton Huo <haltonhuo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm/display-configuration] Cleanup for disable-tcp stuff. "-nolisten tcp" argument can be specified in Exec of ConsoleKit .disp
- Date: Fri, 6 Nov 2009 09:04:35 +0000 (UTC)
commit 2ea456f2627a1ca238c536238ccafadb599d05ec
Author: Halton Huo <halton huo sun com>
Date: Fri Nov 6 14:38:00 2009 +0800
Cleanup for disable-tcp stuff. "-nolisten tcp" argument can be specified in Exec of ConsoleKit .display files
common/gdm-settings-keys.h | 2 --
daemon/gdm-server.c | 22 ----------------------
daemon/gdm-simple-slave.c | 9 ---------
data/gdm.schemas.in.in | 6 ------
4 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/common/gdm-settings-keys.h b/common/gdm-settings-keys.h
index 3b8016e..d3dc73a 100644
--- a/common/gdm-settings-keys.h
+++ b/common/gdm-settings-keys.h
@@ -33,8 +33,6 @@ G_BEGIN_DECLS
#define GDM_KEY_TIMED_LOGIN_USER "daemon/TimedLogin"
#define GDM_KEY_TIMED_LOGIN_DELAY "daemon/TimedLoginDelay"
-#define GDM_KEY_DISALLOW_TCP "security/DisallowTCP"
-
#define GDM_KEY_XDMCP_ENABLE "xdmcp/Enable"
#define GDM_KEY_MAX_PENDING "xdmcp/MaxPending"
#define GDM_KEY_MAX_SESSIONS "xdmcp/MaxSessions"
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index 8289a8e..227c3f6 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -70,7 +70,6 @@ struct GdmServerPrivate
char *command;
GPid pid;
- gboolean disable_tcp;
int priority;
char *user_name;
char *session_args;
@@ -103,7 +102,6 @@ enum {
PROP_USER_NAME,
PROP_SESSION_ARGS,
PROP_LOG_DIR,
- PROP_DISABLE_TCP,
PROP_DISPLAY_ID,
};
@@ -760,13 +758,6 @@ _gdm_server_set_user_name (GdmServer *server,
}
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,
@@ -786,9 +777,6 @@ gdm_server_set_property (GObject *object,
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,9 +807,6 @@ gdm_server_get_property (GObject *object,
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;
@@ -915,13 +900,6 @@ gdm_server_class_init (GdmServerClass *klass)
"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));
}
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 610483c..7021cf6 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -1109,18 +1109,9 @@ gdm_simple_slave_run (GdmSimpleSlave *slave)
* exist */
if (display_is_local) {
gboolean res;
- gboolean disable_tcp;
slave->priv->server = gdm_server_new (display_id);
- disable_tcp = TRUE;
- if (gdm_settings_client_get_boolean (GDM_KEY_DISALLOW_TCP,
- &disable_tcp)) {
- g_object_set (slave->priv->server,
- "disable-tcp", disable_tcp,
- NULL);
- }
-
g_signal_connect (slave->priv->server,
"exited",
G_CALLBACK (on_server_exited),
diff --git a/data/gdm.schemas.in.in b/data/gdm.schemas.in.in
index 82a2223..87b7ed5 100644
--- a/data/gdm.schemas.in.in
+++ b/data/gdm.schemas.in.in
@@ -49,12 +49,6 @@
</schema>
<schema>
- <key>security/DisallowTCP</key>
- <signature>b</signature>
- <default>true</default>
- </schema>
-
- <schema>
<key>xdmcp/Enable</key>
<signature>b</signature>
<default>false</default>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]