aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-08 10:58:20 -0600
committerTed Gould <ted@canonical.com>2009-08-08 10:58:20 -0600
commite445c0f0ec5bfcf7571f951dfb6889fd2f3558c2 (patch)
tree7f8fa940f4af79031d8613cda48b4cda66a7076b /src
parentc4a5e5cf9dabce8c58bc5e7ef4cfe79095d012df (diff)
downloadayatana-indicator-session-e445c0f0ec5bfcf7571f951dfb6889fd2f3558c2.tar.gz
ayatana-indicator-session-e445c0f0ec5bfcf7571f951dfb6889fd2f3558c2.tar.bz2
ayatana-indicator-session-e445c0f0ec5bfcf7571f951dfb6889fd2f3558c2.zip
Oh, now signals and callbacks, oh, my
Diffstat (limited to 'src')
-rw-r--r--src/indicator-sus.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/indicator-sus.c b/src/indicator-sus.c
index 24629d6..e7b067f 100644
--- a/src/indicator-sus.c
+++ b/src/indicator-sus.c
@@ -180,6 +180,20 @@ status_menu_root_changed(DbusmenuGtkClient * client, DbusmenuMenuitem * newroot,
return;
}
+void
+status_icon_changed (void)
+{
+
+
+}
+
+void
+status_icon_cb (DBusGProxy * proxy, char * icons, GError *error, gpointer userdata)
+{
+
+ return;
+}
+
static gboolean
connect_to_status (gpointer userdata)
{
@@ -197,9 +211,15 @@ connect_to_status (gpointer userdata)
if (error != NULL) {
g_warning("Unable to get status proxy: %s", error->message);
g_error_free(error);
+ return FALSE;
}
+
+ dbus_g_proxy_add_signal(status_proxy, "IconsChanged", G_TYPE_STRING, G_TYPE_INVALID);
+ dbus_g_proxy_connect_signal(status_proxy, "IconsChanged", G_CALLBACK(status_icon_changed), NULL, NULL);
}
+ org_ayatana_indicator_status_status_icons_async(status_proxy, status_icon_cb, NULL);
+
return FALSE;
}