Class

BirbActionMenu

since: 0.1

Description [src]

final class Birb.ActionMenu : GObject.Object
  implements Gio.ListModel {
  /* No available fields */
}

A BirbActionMenu was created to allow interested parties to add items to a menu by listening to a signal.

While the primary user interface driving this is GTK, it should be usable for other interfaces.

It allows handlers to add menu items and sections by exposing the menu via birb_action_menu_get_menu(). Those handlers can then also add an action group by passing a prefix and the GActionGroup to birb_action_menu_add_action_group().

As of 0.10 this implements GListModel to expose the added actions groups.

Available since: 0.1

Ancestors

Implements

Constructors

birb_action_menu_new

Creates a new action menu.

since: 0.1

Instance methods

birb_action_menu_add_action_group

Adds group to menu with prefix. If prefix already exists, FALSE will be returned and group will not be added to menu.

since: 0.1

birb_action_menu_get_menu

Gets the GMenu from menu so that you may add items and sections to it.

since: 0.1

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Properties

Birb.ActionMenu:item-type

The type of items. See Gio.ListModelInterface.get_item_type.

unstable since: 0.10

Birb.ActionMenu:n-items

The number of items. See Gio.ListModelInterface.get_n_items.

unstable since: 0.10

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.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Class structure

struct BirbActionMenuClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.