ContextMenuItem.newFromGaction

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.