diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-02-20 21:31:34 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-02-20 21:31:34 +0000 |
commit | 15adf442e886257ded983cfaeeaa9c28c78298cd (patch) | |
tree | 7882ac40188dbe35980470863b46a3fe31ac614a /common | |
parent | 01e36b63d347df1995394e6e5d6e1861f1dc86dd (diff) | |
download | gdm-15adf442e886257ded983cfaeeaa9c28c78298cd.tar.gz |
Set XDMCP enabled/disabled from configuration settings.
2008-02-20 William Jon McCann <jmccann@redhat.com>
* common/gdm-settings-keys.h:
* common/test-settings-client.c: (test_settings_client):
* daemon/gdm-manager.c: (gdm_manager_class_init):
* daemon/main.c: (main):
Set XDMCP enabled/disabled from configuration settings.
svn path=/trunk/; revision=5827
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-settings-keys.h | 2 | ||||
-rw-r--r-- | common/test-settings-client.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/common/gdm-settings-keys.h b/common/gdm-settings-keys.h index 036f161c..9ea57a0f 100644 --- a/common/gdm-settings-keys.h +++ b/common/gdm-settings-keys.h @@ -31,7 +31,7 @@ G_BEGIN_DECLS #define GDM_KEY_TIMED_LOGIN_USER "daemon/TimedLogin" #define GDM_KEY_TIMED_LOGIN_DELAY "daemon/TimedLoginDelay" -#define GDM_KEY_XDMCP "xdmcp/Enable" +#define GDM_KEY_XDMCP_ENABLE "xdmcp/Enable" #define GDM_KEY_MAX_PENDING "xdmcp/MaxPending" #define GDM_KEY_MAX_SESSIONS "xdmcp/MaxSessions" #define GDM_KEY_MAX_WAIT "xdmcp/MaxWait" diff --git a/common/test-settings-client.c b/common/test-settings-client.c index cd07d8fd..8ca970eb 100644 --- a/common/test-settings-client.c +++ b/common/test-settings-client.c @@ -57,16 +57,16 @@ test_settings_client (gpointer data) g_debug ("Got res=%d %s=%s", res, GDM_KEY_WILLING, strval); g_free (strval); - res = gdm_settings_client_get_boolean (GDM_KEY_XDMCP, &boolval); - g_debug ("Got res=%d %s=%s", res, GDM_KEY_XDMCP, boolval ? "true" : "false"); + res = gdm_settings_client_get_boolean (GDM_KEY_XDMCP_ENABLE, &boolval); + g_debug ("Got res=%d %s=%s", res, GDM_KEY_XDMCP_ENABLE, boolval ? "true" : "false"); g_debug ("Adding notify for all keys"); gdm_settings_client_notify_add ("/", notify_cb, NULL, NULL); - g_debug ("Setting boolean key %s to %s", GDM_KEY_XDMCP, !boolval ? "true" : "false"); - gdm_settings_client_set_boolean (GDM_KEY_XDMCP, !boolval); - g_debug ("Setting boolean key %s to %s", GDM_KEY_XDMCP, boolval ? "true" : "false"); - gdm_settings_client_set_boolean (GDM_KEY_XDMCP, boolval); + g_debug ("Setting boolean key %s to %s", GDM_KEY_XDMCP_ENABLE, !boolval ? "true" : "false"); + gdm_settings_client_set_boolean (GDM_KEY_XDMCP_ENABLE, !boolval); + g_debug ("Setting boolean key %s to %s", GDM_KEY_XDMCP_ENABLE, boolval ? "true" : "false"); + gdm_settings_client_set_boolean (GDM_KEY_XDMCP_ENABLE, boolval); return FALSE; } |