Class
WebKit2WebExtensionContextMenu
Description [src]
class WebKit2WebExtension.ContextMenu : GObject.Object
{
priv: WebKitContextMenuPrivate*
}
Represents the context menu in a WebKitWebView
.
WebKitContextMenu
represents a context menu containing
WebKitContextMenuItem
s in a WebKitWebView
.
When a WebKitWebView
is about to display the context menu, it
emits the WebKitWebView::context-menu
signal, which has the
WebKitContextMenu
as an argument. You can modify it, adding new
submenus that you can create with webkit_context_menu_new(), adding
new WebKitContextMenuItem
s with
webkit_context_menu_prepend(), webkit_context_menu_append()
or
webkit_context_menu_insert(), maybe after having removed the
existing ones with webkit_context_menu_remove_all().
Instance methods
webkit_context_menu_get_event
Gets the GdkEvent
that triggered the context menu. This function only returns a valid
GdkEvent
when called for a WebKitContextMenu
passed to WebKitWebView::context-menu
signal; in all other cases, NULL
is returned.
since: 2.40
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WebKit2WebExtensionContextMenuClass {
GObjectClass parent_class;
void (* _webkit_reserved0) (
void
);
void (* _webkit_reserved1) (
void
);
void (* _webkit_reserved2) (
void
);
void (* _webkit_reserved3) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
No description available.