It derives from <GtkWidget>.
Presents a horizontal bar of items that pop up menus when clicked.
The only way to create instances of
<GtkPopoverMenuBar> is from a
<GMenuModel>.
menubar
├── item[.active]
┊ ╰── popover
╰── item
╰── popover
<GtkPopoverMenuBar> has a single CSS node
with name menubar, below which each item has its CSS node, and below
that the corresponding popover.
The item whose popover is currently open gets the .active style class.
<GtkPopoverMenuBar> uses the
Gtk.AccessibleRole.menu_bar role, the menu items use the
Gtk.AccessibleRole.menu_item role and the menus use the
Gtk.AccessibleRole.menu role.
The <GMenuModel> from which the menu bar is
created.
The model should only contain submenus as toplevel elements.
Its value is a <GMenuModel>, or #f.
Set it with (set! (popover-menu-bar:menu-model self) value).
Adds a custom widget to a generated menubar.
For this to work, the menu model of self must have an item with a
custom attribute that matches id.
Passed: a <GtkPopoverMenuBar>.
Passed: a <GtkWidget>.
the <GtkWidget> to add
Passed: a string.
the ID to insert child at
Returned: a boolean.
#t if id was found and the widget added
Returns the model from which the contents of self are taken.
Passed: a <GtkPopoverMenuBar>.
Returned: a <GMenuModel>, or #f.
Creates a <GtkPopoverMenuBar> from a
<GMenuModel>.
Passed, or left out: a <GMenuModel>, or
#f.
Returned: a <GtkWidget>.
a new <GtkPopoverMenuBar>
Removes a widget that has previously been added with
popover-menu-bar:add-child?.
Passed: a <GtkPopoverMenuBar>.
Passed: a <GtkWidget>.
the <GtkWidget> to remove
Returned: a boolean.
#t if the widget was removed
Sets a menu model from which self should take its contents.
Passed: a <GtkPopoverMenuBar>.
Passed, or left out: a <GMenuModel>, or
#f.