summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdefault.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@lanedo.com>2011-09-19 00:32:52 +0200
committerMichael Natterer <mitch@gimp.org>2011-09-26 16:01:50 +0200
commitb663f3a00bc3d9a5f1e17eebe742ee14504fdcac (patch)
treeb211904ba221afa1fbea76d6275826ddfbc4e731 /gtk/gtkfilechooserdefault.c
parent0955a59563d0b64a9bc9404ee9e1ec3809df5270 (diff)
downloadgtk+-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/gtkfilechooserdefault.c')
-rw-r--r--gtk/gtkfilechooserdefault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 07ed02c0d8..5ea074df30 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -3448,7 +3448,7 @@ shortcuts_button_press_event_cb (GtkWidget *widget,
if (in_press)
return FALSE;
- if (event->button != 3)
+ if (!_gtk_button_event_triggers_context_menu (event))
return FALSE;
in_press = TRUE;
@@ -4296,7 +4296,7 @@ list_button_press_event_cb (GtkWidget *widget,
if (in_press)
return FALSE;
- if (event->button != 3)
+ if (!_gtk_button_event_triggers_context_menu (event))
return FALSE;
in_press = TRUE;