WebKit2.ContextMenuItem.new

function new(action: Gtk.Action): WebKit2.ContextMenuItem {
    // Gjs wrapper for webkit_context_menu_item_new()
}
  

Creates a new WebKit2.ContextMenuItem for the given action.

action

a Gtk.Action

Returns

the newly created WebKit2.ContextMenuItem object.