From bf390ec6d9aa02fe5fed6278f6f9bb249557e210 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 13 Jan 2010 16:10:25 -0600 Subject: Connecting to the activate signal --- src/libappindicator/app-indicator.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/libappindicator/app-indicator.c') diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index 7dd2894..e38e760 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -136,6 +136,7 @@ static void register_service_cb (DBusGProxy * proxy, GError * error, gpointer da static void start_fallback_timer (AppIndicator * self, gboolean do_it_now); static gboolean fallback_timer_expire (gpointer data); static GtkStatusIcon * fallback (AppIndicator * self); +static void status_icon_activate (GtkStatusIcon * icon, gpointer data); static void unfallback (AppIndicator * self, GtkStatusIcon * status_icon); static void watcher_proxy_destroyed (GObject * object, gpointer data); @@ -765,9 +766,20 @@ fallback (AppIndicator * self) break; }; + g_signal_connect(G_OBJECT(icon), "activate", G_CALLBACK(status_icon_activate), self); + return NULL; } +/* Handles the activate action by the status icon by showing + the menu in a popup. */ +static void +status_icon_activate (GtkStatusIcon * icon, gpointer data) +{ + g_debug("Status Icon Activate"); + return; +} + /* Removes the status icon as the application indicator area is now up and running again. */ static void -- cgit v1.2.3