From 255ccc8a16afc58cd56bca5880a706ac494c00ba Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 8 Aug 2009 06:33:22 -0600 Subject: Setting up signal handlers for the signal changing. We still ask everyone, they better cache a value :) --- src/status-service.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3