PopoverMenu.this

Creates a GtkPopoverMenu and populates it according to @model.

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 [method@Gtk.Widget.insert_action_group] on the menus attach widget or on any of its parent widgets.

This function creates menus with sliding submenus. See [ctor@Gtk.PopoverMenu.new_from_model_full] for a way to control this.

Parameters

model MenuModel

a GMenuModel, or %NULL

Return Value

the new GtkPopoverMenu

Throws

ConstructionException GTK+ fails to create the object.

Meta