PopoverMenu.newFromModel

Creates a [gtk.popover_menu.PopoverMenu] and populates it according to model.

The created buttons are connected to actions found in the [gtk.application_window.ApplicationWindow] to which the popover belongs - typically by means of being attached to a widget that is contained within the [gtk.application_window.ApplicationWindow]s widget hierarchy.

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

This function creates menus with sliding submenus. See [gtk.popover_menu.PopoverMenu.newFromModelFull] for a way to control this.

Parameters

modela [gio.menu_model.MenuModel]

Returns

the new [gtk.popover_menu.PopoverMenu]