Package: gtk

Function gtk:popover-menu-new-from-model

Lambda List

gtk:popover-menu-new-from-model (model)

Arguments

model -- a g:menu-model object, or nil

Return Value

The new gtk:popover-menu widget.

Details

Creates a popover menu and populates it according to the menu model. The created buttons are connected to actions found in the gtk:application-window widget to which the popover belongs - typically by means of being attached to a widget that is contained within the widget hierarchy of the application window. Actions can also be added using the gtk:widget-insert-action-group function on the menus attach widget or on any of its parent widgets.

This function creates menus with sliding submenus. See the gtk:popover-menu-new-from-model-full function for a way to control this.
 

See also

#2024-10-26