aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-custom.c')
-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;
}