get_event


Description:

[ Version ( since = "2.40" ) ]
public unowned Event get_event ()

Gets the Event that triggered the context menu.

This function only returns a valid Event when called for a ContextMenu passed to WebKitWebView::context-menu signal; in all other cases, null is returned.

The returned Event is expected to be one of the following types: <itemizedlist> <listitem><para> a GdkEventButton of type gdk_button_press when the context menu was triggered with mouse. </para></listitem> <listitem><para> a GdkEventKey of type gdk_key_press if the keyboard was used to show the menu. </para></listitem> <listitem>< para> a generic Event of type gdk_nothing when the GtkWidget::popup-menu signal was used to show the context menu. </para></listitem> </itemizedlist>

Parameters:

this

a ContextMenu

Returns:

the menu event or null.