diff options
author | Michael Natterer <mitch@lanedo.com> | 2011-09-19 00:32:52 +0200 |
---|---|---|
committer | Michael Natterer <mitch@gimp.org> | 2011-09-26 16:01:50 +0200 |
commit | b663f3a00bc3d9a5f1e17eebe742ee14504fdcac (patch) | |
tree | b211904ba221afa1fbea76d6275826ddfbc4e731 /gtk/gtknotebook.c | |
parent | 0955a59563d0b64a9bc9404ee9e1ec3809df5270 (diff) | |
download | gtk+-b663f3a00bc3d9a5f1e17eebe742ee14504fdcac.tar.gz |
Bug 659406 - Abstract what triggers a context menu
Add _gtk_button_event_triggers_context_menu() and use it instead
of checking for event->button == 3, so context menus are invoked
correctly on the Mac.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index a518e9c7ca..afc51d35c9 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2858,7 +2858,7 @@ gtk_notebook_button_press (GtkWidget *widget, if (arrow) return gtk_notebook_arrow_button_press (notebook, arrow, event->button); - if (event->button == 3 && priv->menu) + if (priv->menu && _gtk_button_event_triggers_context_menu (event)) { gtk_menu_popup (GTK_MENU (priv->menu), NULL, NULL, NULL, NULL, 3, event->time); |