Add gimp_button_event_triggers_context_menu() and use it

instead of checking for event->button == 3, so context menus
work correctly on the Mac. Didn't change the image menu yet
because thet requires some more refactoring.
This commit is contained in:
Michael Natterer
2011-09-19 00:45:36 +02:00
parent f8a2644b13
commit d92cd2f6c8
19 changed files with 124 additions and 114 deletions

View File

@ -230,7 +230,7 @@ gimp_error_console_button_press (GtkWidget *widget,
GdkEventButton *bevent,
GimpErrorConsole *console)
{
if (bevent->button == 3 && bevent->type == GDK_BUTTON_PRESS)
if (gimp_button_event_triggers_context_menu (bevent))
{
return gimp_editor_popup_menu (GIMP_EDITOR (console), NULL, NULL);
}