Package: gtk

Function gtk-popover-new-from-model

Lambda List

gtk-popover-new-from-model (relative-to model)

Arguments

relative-to -- a gtk-widget the popover is related to
model -- a g-menu-model object

Return Value

A new gtk-popover widget.

Details

Creates a popover and populates it according to model. The popover is pointed to the relative-to widget.

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 gtk-application-window widget hierarchy.

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.
 

See also

2021-12-25