Constructor
WebKit2WebExtensionContextMenuItemnew_from_gaction
Declaration [src]
WebKitContextMenuItem*
webkit_context_menu_item_new_from_gaction (
GAction* action,
const gchar* label,
GVariant* target
)
Description [src]
Creates a new WebKitContextMenuItem
for the given action
and label
.
On activation
target
will be passed as parameter to the callback.
Available since: | 2.18 |
Parameters
action |
GAction |
A |
|
The data is owned by the caller of the function. | |
label |
const gchar* |
The menu item label text. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
target |
GVariant |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |
Return value
Returns: | WebKitContextMenuItem |
The newly created |
|
The data is owned by the called function. |