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
@ -2858,7 +2858,7 @@ gtk_notebook_button_press (GtkWidget *widget,
|
||||
if (arrow)
|
||||
return gtk_notebook_arrow_button_press (notebook, arrow, event->button);
|
||||
|
||||
if (event->button == 3 && priv->menu)
|
||||
if (priv->menu && _gtk_button_event_triggers_context_menu (event))
|
||||
{
|
||||
gtk_menu_popup (GTK_MENU (priv->menu), NULL, NULL,
|
||||
NULL, NULL, 3, event->time);
|
||||
|
Reference in New Issue
Block a user