diff options
author | Ted Gould <ted@canonical.com> | 2009-09-24 10:36:43 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-24 10:36:43 -0500 |
commit | 94de1260bb02a05967334b9720f9ccddafa109b5 (patch) | |
tree | 38ab61574c05ca0cc37b899f66d763159bad8c1c | |
parent | edd1b16a9c4481381befb75215f9ba46e15885b7 (diff) | |
download | ayatana-indicator-session-94de1260bb02a05967334b9720f9ccddafa109b5.tar.gz ayatana-indicator-session-94de1260bb02a05967334b9720f9ccddafa109b5.tar.bz2 ayatana-indicator-session-94de1260bb02a05967334b9720f9ccddafa109b5.zip |
Setting up the signal handler to get changes to the value.
-rw-r--r-- | src/session-service.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c index a5a95e6..89d4655 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -114,6 +114,19 @@ build_gdm_proxy (gpointer null_data) "org.gnome.DisplayManager.Settings", NULL); g_return_val_if_fail(gdm_settings_proxy != NULL, FALSE); + /* Signal for value changed */ + dbus_g_proxy_add_signal(gdm_settings_proxy, + "ValueChanged", + G_TYPE_STRING, + G_TYPE_STRING, + G_TYPE_STRING, + G_TYPE_INVALID); + dbus_g_proxy_connect_signal(gdm_settings_proxy, + "ValueChanged", + G_CALLBACK(gdm_settings_change), + NULL, + NULL); + /* Start to get the initial value */ dbus_g_proxy_begin_call(gdm_settings_proxy, "GetValue", |