diff options
author | Ted Gould <ted@gould.cx> | 2010-01-13 16:28:53 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-13 16:28:53 -0600 |
commit | 6068e6cdb6fa92235c662706c8eabcff4207e1fa (patch) | |
tree | 76b48ec9dfabd3ff8a2f023df26aee6aa68b9a34 | |
parent | 10521bbccfe5ab6cb9dac60a31ee055f7a6384e0 (diff) | |
download | ayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.tar.gz ayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.tar.bz2 ayatana-indicator-application-6068e6cdb6fa92235c662706c8eabcff4207e1fa.zip |
Popping up menu on activate.
-rw-r--r-- | src/libappindicator/app-indicator.c | 11 |
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; } |