Popover.newFromModel

Creates a #GtkPopover 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 #GtkApplicationWindow to which the popover belongs - typically by means of being attached to a widget that is contained within the #GtkApplicationWindows widget hierarchy.

Actions can also be added using [gtk.widget.Widget.insertActionGroup] on the menus attach widget or on any of its parent widgets.

Parameters

relativeTo#GtkWidget the popover is related to
modela #GMenuModel

Returns

the new #GtkPopover