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 gtk.widget.Widget

#GtkWidget the popover is related to

model gio.menu_model.MenuModel

a #GMenuModel

Return Value

Type: gtk.popover.Popover

the new #GtkPopover