aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-13 16:28:53 -0600
committerTed Gould <ted@gould.cx>2010-01-13 16:28:53 -0600
commit6068e6cdb6fa92235c662706c8eabcff4207e1fa (patch)
tree76b48ec9dfabd3ff8a2f023df26aee6aa68b9a34 /src
parent10521bbccfe5ab6cb9dac60a31ee055f7a6384e0 (diff)
downloadayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.tar.gz
ayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.tar.bz2
ayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.zip
Popping up menu on activate.
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 4852633..f330870 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -776,6 +776,17 @@ fallback (AppIndicator * self)
static void
status_icon_activate (GtkStatusIcon * icon, gpointer data)
{
+ GtkMenu * menu = app_indicator_get_menu(APP_INDICATOR(data));
+ if (menu == NULL)
+ return;
+
+ gtk_menu_popup(menu,
+ NULL, /* Parent Menu */
+ NULL, /* Parent item */
+ gtk_status_icon_position_menu,
+ icon,
+ 1, /* Button */
+ gtk_get_current_event_time());
return;
}