Class

GntMenuItem

Description

class Gnt.MenuItem : GObject.Object {
  parent_instance: GObject
}
No description available.

Ancestors

Descendants

Constructors

gnt_menuitem_new

Create a new menuitem.

Instance methods

gnt_menuitem_activate

Activate a menuitem. Activating the menuitem will first trigger the ‘activate’ signal for the menuitem. Then the callback for the menuitem is triggered, if there is one.

Available since: 2.3.0

gnt_menuitem_get_id

Get the ID of the menuitem.

Available since: 2.3.0

gnt_menuitem_get_submenu

Get the submenu for a menuitem.

Available since: 2.3.0

gnt_menuitem_get_trigger

Get the trigger key for a menuitem.

gnt_menuitem_is_visible

Checks, if the item is visible.

Available since: 3.0.0

gnt_menuitem_set_callback

Set a callback function for a menuitem.

gnt_menuitem_set_id

Set an ID for the menuitem.

Available since: 2.3.0

gnt_menuitem_set_submenu

Set a submenu for a menuitem. A menuitem with a submenu cannot have a callback.

gnt_menuitem_set_text

Changes the text for an item.

Available since: 3.0.0

gnt_menuitem_set_trigger

Set a trigger key for the item.

gnt_menuitem_set_visible

Sets item visible or not.

Available since: 3.0.0

Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Signals

Gnt.MenuItem::activate
No description available.
Signals inherited from GObject (1)
GObject.Object::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.

Class structure

struct GntMenuItemClass {
  /* no available fields */
}

The class structure for GntMenuItem.