ContextMenuItem.newFromGaction

webkit.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

actiona #GAction
labelthe menu item label text
targeta #GVariant to use as the action target

Returns

the newly created #WebKitContextMenuItem object.