aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Deslauriers <marc.deslauriers@canonical.com>2010-02-04 09:52:52 -0800
committerMarc Deslauriers <marc.deslauriers@canonical.com>2010-02-04 09:52:52 -0800
commit9d061e9432e672c5fdc33bee56f42941f0d993d7 (patch)
treec181523b477d62974ec314a9e617e66b020c0454
parent4b4b9d7b499457dc8bae7d4d31955ec570eab343 (diff)
downloadayatana-indicator-session-9d061e9432e672c5fdc33bee56f42941f0d993d7.tar.gz
ayatana-indicator-session-9d061e9432e672c5fdc33bee56f42941f0d993d7.tar.bz2
ayatana-indicator-session-9d061e9432e672c5fdc33bee56f42941f0d993d7.zip
- src/lock-helper.c: use dbus_g_proxy_new_for_name so when
gnome-screensaver gets respawned by D-Bus, indicator-session will still be able to communicate with it. (LP: #484603)
-rw-r--r--src/lock-helper.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lock-helper.c b/src/lock-helper.c
index 0bdec6c..f30e866 100644
--- a/src/lock-helper.c
+++ b/src/lock-helper.c
@@ -248,11 +248,10 @@ build_gss_proxy (void)
DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
g_return_if_fail(session_bus != NULL);
- gss_proxy = dbus_g_proxy_new_for_name_owner(session_bus,
- "org.gnome.ScreenSaver",
- "/",
- "org.gnome.ScreenSaver",
- NULL);
+ gss_proxy = dbus_g_proxy_new_for_name(session_bus,
+ "org.gnome.ScreenSaver",
+ "/",
+ "org.gnome.ScreenSaver");
g_return_if_fail(gss_proxy != NULL);
dbus_g_proxy_add_signal(gss_proxy, "ActiveChanged", G_TYPE_BOOLEAN, G_TYPE_INVALID);