aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-02 20:08:07 -0600
committerTed Gould <ted@canonical.com>2009-11-02 20:08:07 -0600
commitd496d7ad4557d8bd09030c47140210a666612a92 (patch)
treeaa73dcb6b3573f49ece3cf7efbc357cd73296eb4
parent9aff9ba7149a1757f124db54599637801fa76ae6 (diff)
downloadayatana-indicator-application-d496d7ad4557d8bd09030c47140210a666612a92.tar.gz
ayatana-indicator-application-d496d7ad4557d8bd09030c47140210a666612a92.tar.bz2
ayatana-indicator-application-d496d7ad4557d8bd09030c47140210a666612a92.zip
We've got a service manager. Now we'll start ourselves up!
-rw-r--r--src/indicator-custom.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/indicator-custom.c b/src/indicator-custom.c
index 1a09a9a..d9763ea 100644
--- a/src/indicator-custom.c
+++ b/src/indicator-custom.c
@@ -1,9 +1,20 @@
-#include "libindicator/indicator.h"
+#include <libindicator/indicator.h>
+#include <libindicator/indicator-service-manager.h>
+#include "dbus-shared.h"
INDICATOR_SET_VERSION
INDICATOR_SET_NAME("indicator-custom")
+IndicatorServiceManager * sm = NULL;
+
+void
+connected (IndicatorServiceManager * sm, gboolean connected, gpointer not_used)
+{
+
+ return;
+}
+
GtkLabel *
get_label (void)
{
@@ -24,5 +35,8 @@ get_menu (void)
gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
gtk_widget_show(GTK_WIDGET(loading_item));
+ sm = indicator_service_manager_new(INDICATOR_CUSTOM_DBUS_ADDR);
+ g_signal_connect(G_OBJECT(sm), INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE, G_CALLBACK(connected), NULL);
+
return main_menu;
}