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/gtkmountoperation.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/gtkmountoperation.c')
-rw-r--r-- | gtk/gtkmountoperation.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index 2d022cc00e..dea21f5491 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -1167,8 +1167,7 @@ on_button_press_event_for_process_tree_view (GtkWidget *widget, ret = FALSE; - /* Ignore double-clicks and triple-clicks */ - if (event->button == 3 && event->type == GDK_BUTTON_PRESS) + if (_gtk_button_event_triggers_context_menu (event)) { ret = do_popup_menu_for_process_tree_view (widget, event, op); } |