PopoverMenu

constructor(model: <Error class: unknown class>? = null)

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.

Return

the new GtkPopoverMenu

Parameters

model

a GMenuModel


constructor(model: <Error class: unknown class>, flags: PopoverMenuFlags)

Creates a GtkPopoverMenu and populates it according to @model.

The created buttons are connected to actions found in the action groups that are accessible from the parent widget. This includes the GtkApplicationWindow to which the popover belongs. Actions can also be added using method@Gtk.Widget.insert_action_group on the parent widget or on any of its parent widgets.

The only flag that is supported currently is %GTK_POPOVER_MENU_NESTED, which makes GTK create traditional, nested submenus instead of the default sliding submenus.

Return

the new GtkPopoverMenu

Parameters

model

a GMenuModel

flags

flags that affect how the menu is created


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)