Class

WebKit2ContextMenuItem

unstable since: 4.1

Description [src]

class WebKit2.ContextMenuItem : GObject.InitiallyUnowned
{
  priv: WebKitContextMenuItemPrivate*
}

One item of a WebKitContextMenu.

The WebKitContextMenu is composed of WebKitContextMenuItems. These items can be created from a GtkAction, from a WebKitContextMenuAction or from a WebKitContextMenuAction and a label. These WebKitContextMenuActions denote stock actions for the items. You can also create separators and submenus.

Available since: 4.1

Hierarchy

hierarchy this WebKitContextMenuItem ancestor_0 GInitiallyUnowned ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Constructors

webkit_context_menu_item_new

Creates a new WebKitContextMenuItem for the given action.

unstable deprecated: 2.18 since: 4.1

webkit_context_menu_item_new_from_gaction

Creates a new WebKitContextMenuItem for the given action and label.

since: 2.18

webkit_context_menu_item_new_from_stock_action

Creates a new WebKitContextMenuItem for the given stock action.

unstable since: 4.1

webkit_context_menu_item_new_from_stock_action_with_label

Creates a new WebKitContextMenuItem for the given stock action using the given label.

unstable since: 4.1

webkit_context_menu_item_new_separator

Creates a new WebKitContextMenuItem representing a separator.

unstable since: 4.1

webkit_context_menu_item_new_with_submenu

Creates a new WebKitContextMenuItem using the given label with a submenu.

unstable since: 4.1

Instance methods

webkit_context_menu_item_get_action

Gets the action associated to item as a GtkAction.

unstable deprecated: 2.18 since: 4.1

webkit_context_menu_item_get_gaction

Gets the action associated to item as a GAction.

since: 2.18

webkit_context_menu_item_get_stock_action

Gets the WebKitContextMenuAction of item.

unstable since: 4.1

webkit_context_menu_item_get_submenu

Gets the submenu of item.

unstable since: 4.1

webkit_context_menu_item_is_separator

Checks whether item is a separator.

unstable since: 4.1

webkit_context_menu_item_set_submenu

Sets or replaces the item submenu.

unstable since: 4.1

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

Class structure

struct WebKit2ContextMenuItemClass {
  GInitiallyUnownedClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
No description available.
Class members
parent_class: GInitiallyUnownedClass
No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
No description available.