Package: gtk

Class gtk:popover-menu-bar

Superclasses

Documented Subclasses

None

Direct Slots

menu-model
The menu-model property of type g:menu-model (Read / Write)
The model from which the menu bar is created. The model should only contain submenus as toplevel elements.

Details

The gtk:popover-menu-bar widget presents a horizontal bar of items that pop up popover menus when clicked. The only way to create instances of the gtk:popover-menu-bar widget is from a g:menu-model object.

Figure: GtkPopoverMenuBar

CSS nodes

menubar
├── item[.active]
┊   ╰── popover
╰── item
    ╰── popover    
The gtk:popover-menu-bar implementation 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.

Accessibility

The gtk:popover-menu-bar implementation uses the :menu-bar role of the gtk:accessible-role enumeration. The menu items use the :menu-item role and the menus use the :menu role.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-10-26