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

@ -262,6 +262,8 @@ GtkWidget * gimp_table_attach_aligned (GtkTable *table,
void gimp_label_set_attributes (GtkLabel *label,
...);
gboolean gimp_button_event_triggers_context_menu (GdkEventButton *event);
G_END_DECLS