ContextMenuItem.newFromGaction

Creates a new #WebKitContextMenuItem for the given action and label.

On activation target will be passed as parameter to the callback.

Parameters

action gio.action.Action

a #GAction

label string

the menu item label text

target glib.variant.Variant

a #GVariant to use as the action target

Return Value

Type: webkitwebprocessextension.context_menu_item.ContextMenuItem

the newly created #WebKitContextMenuItem object.