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.
This commit is contained in:
committed by
Michael Natterer
parent
0955a59563
commit
b663f3a00b
@ -1505,8 +1505,7 @@ palette_press (GtkWidget *drawing_area,
|
||||
|
||||
gtk_widget_grab_focus (drawing_area);
|
||||
|
||||
if (event->button == 3 &&
|
||||
event->type == GDK_BUTTON_PRESS)
|
||||
if (_gtk_button_event_triggers_context_menu (event))
|
||||
{
|
||||
do_popup (colorsel, drawing_area, event->time);
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user