diff options
author | Ted Gould <ted@gould.cx> | 2010-03-15 16:02:06 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-15 16:02:06 -0500 |
commit | eb8756b0a8b55f904dd74103fa33d67b1da11575 (patch) | |
tree | a64741f4fa5f9a382f19ac189c95b7d5dd340555 /src/session-service.c | |
parent | acc3a9675f035777b3b32335edb7854860bfb9ba (diff) | |
download | ayatana-indicator-session-eb8756b0a8b55f904dd74103fa33d67b1da11575.tar.gz ayatana-indicator-session-eb8756b0a8b55f904dd74103fa33d67b1da11575.tar.bz2 ayatana-indicator-session-eb8756b0a8b55f904dd74103fa33d67b1da11575.zip |
Only setup signals if we're building the proxy for the first time.
Diffstat (limited to 'src/session-service.c')
-rw-r--r-- | src/session-service.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/session-service.c b/src/session-service.c index 3ee1f6c..9cde4b0 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -266,19 +266,19 @@ setup_up (void) { UP_ADDRESS, UP_OBJECT, DBUS_INTERFACE_PROPERTIES); + /* Connect to changed signal */ + dbus_g_proxy_add_signal(up_main_proxy, + "Changed", + G_TYPE_INVALID); + + dbus_g_proxy_connect_signal(up_main_proxy, + "Changed", + G_CALLBACK(up_changed_cb), + NULL, + NULL); } g_return_if_fail(up_prop_proxy != NULL); - /* Connect to changed signal */ - dbus_g_proxy_add_signal(up_main_proxy, - "Changed", - G_TYPE_INVALID); - - dbus_g_proxy_connect_signal(up_main_proxy, - "Changed", - G_CALLBACK(up_changed_cb), - NULL, - NULL); /* Force an original "changed" event */ up_changed_cb(up_main_proxy, NULL); |