Class
BirbActionMenu
since: 0.1
Description [src]
final class Birb.ActionMenu : GObject.Object
{
/* 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()
.
User interfaces can then call birb_action_menu_foreach_action_group()
to
handle the action groups.
Available 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_foreach_action_group
Calls func
with the prefix and action group from each item in menu
as well
as user_data
.
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
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.