diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-20 08:19:18 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-20 08:19:18 +0800 |
commit | 7ed4e6f1828bf1607690105ab439e02e9c1521cc (patch) | |
tree | e82a47a1069340256a6833f5fa11b19f27159f6e /widgets/misc/e-gui-utils.c | |
parent | e755e3d94d6ff8d027ea62db0c03e33adc104cdf (diff) | |
download | gsoc2013-evolution-7ed4e6f1828bf1607690105ab439e02e9c1521cc.tar.gz gsoc2013-evolution-7ed4e6f1828bf1607690105ab439e02e9c1521cc.tar.zst gsoc2013-evolution-7ed4e6f1828bf1607690105ab439e02e9c1521cc.zip |
s/GdkEventButton/GdkEvent/
* gal/widgets/e-popup-menu.c (e_popup_menu_run):
s/GdkEventButton/GdkEvent/
* gal/widgets/e-gui-utils.c (e_popup_menu): ditto, and deal with
key events as well
svn path=/trunk/; revision=7660
Diffstat (limited to 'widgets/misc/e-gui-utils.c')
-rw-r--r-- | widgets/misc/e-gui-utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/misc/e-gui-utils.c b/widgets/misc/e-gui-utils.c index 86cb3c3b5c..0d3dcf0728 100644 --- a/widgets/misc/e-gui-utils.c +++ b/widgets/misc/e-gui-utils.c @@ -56,13 +56,16 @@ e_auto_kill_popup_menu_on_hide (GtkMenu *menu) } void -e_popup_menu (GtkMenu *menu, GdkEventButton *event) +e_popup_menu (GtkMenu *menu, GdkEvent *event) { g_return_if_fail (menu != NULL); g_return_if_fail (GTK_IS_MENU (menu)); e_auto_kill_popup_menu_on_hide (menu); - gtk_menu_popup (menu, NULL, NULL, 0, NULL, event->button, event->time); + if (event->type == GDK_KEY_PRESS) + gtk_menu_popup (menu, NULL, NULL, 0, NULL, 0, event->key.time); + else + gtk_menu_popup (menu, NULL, NULL, 0, NULL, event->button.button, event->button.time); } typedef struct { |