ContextMenuItem.newFromGaction
webkitwebprocessextension.context_menu_item.ContextMenuItem newFromGaction(gio.action.Action action, string label, glib.variant.Variant target = null)Creates a new #WebKitContextMenuItem for the given action and label.
On activation target will be passed as parameter to the callback.
Parameters
action | a #GAction |
label | the menu item label text |
target | a #GVariant to use as the action target |
Returns
the newly created #WebKitContextMenuItem object.