aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-04 16:59:30 -0800
committerTed Gould <ted@gould.cx>2010-02-04 16:59:30 -0800
commit0d157ebeacdb97927fa73a333d42d3e67d817e36 (patch)
treef045511def3e1ed3f013b371a96727635e82f51a /src
parent190efd1967d69700806a5a104965989f9e0bba11 (diff)
parent9d061e9432e672c5fdc33bee56f42941f0d993d7 (diff)
downloadayatana-indicator-session-0d157ebeacdb97927fa73a333d42d3e67d817e36.tar.gz
ayatana-indicator-session-0d157ebeacdb97927fa73a333d42d3e67d817e36.tar.bz2
ayatana-indicator-session-0d157ebeacdb97927fa73a333d42d3e67d817e36.zip
Making the proxy track GNOME Screensaver
Diffstat (limited to 'src')
-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 991aba2..ded1b33 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);