triggers_context_menu


Description:

[ Version ( since = "3.4" ) ]
public bool triggers_context_menu ()

This function returns whether a EventButton should trigger a context menu, according to platform conventions.

The right mouse button always triggers context menus. Additionally, if get_modifier_mask returns a non-0 mask for gdk_modifier_intent_context_menu, then the left mouse button will also trigger a context menu if this modifier is pressed.

This function should always be used instead of simply checking for event->button == gdk_button_secondary.

Parameters:

this

a Event, currently only button events are meaningful values

Returns:

true if the event should trigger a context menu.