aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-08 06:33:22 -0600
committerTed Gould <ted@canonical.com>2009-08-08 06:33:22 -0600
commit255ccc8a16afc58cd56bca5880a706ac494c00ba (patch)
tree05e8c7222c7e8b7c2dd57c8e386fde6993275826 /src/status-service.c
parent0788baad4bd4714e8361a99150046ba4fdb4513a (diff)
downloadayatana-indicator-session-255ccc8a16afc58cd56bca5880a706ac494c00ba.tar.gz
ayatana-indicator-session-255ccc8a16afc58cd56bca5880a706ac494c00ba.tar.bz2
ayatana-indicator-session-255ccc8a16afc58cd56bca5880a706ac494c00ba.zip
Setting up signal handlers for the signal changing. We still ask everyone, they better cache a value :)
Diffstat (limited to 'src/status-service.c')
-rw-r--r--src/status-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/status-service.c b/src/status-service.c
index c1f06f5..0c7b7b2 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -138,8 +138,14 @@ build_providers (gpointer data)
int i;
for (i = 0; i < STATUS_PROVIDER_CNT; i++) {
status_providers[i] = status_provider_newfuncs[i]();
+
+ if (status_providers[i] != NULL) {
+ g_signal_connect(G_OBJECT(status_providers[i]), STATUS_PROVIDER_SIGNAL_STATUS_CHANGED, G_CALLBACK(status_update), NULL);
+ }
}
+ status_update();
+
return FALSE;
}