PopoverMenu.this

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.

  1. this(GtkPopoverMenu* gtkPopoverMenu, bool ownedRef)
  2. this(MenuModel model)
  3. this(MenuModel model, GtkPopoverMenuFlags flags)
    class PopoverMenu

Parameters

model MenuModel

a GMenuModel

flags GtkPopoverMenuFlags

flags that affect how the menu is created

Return Value

the new GtkPopoverMenu

Throws

ConstructionException GTK+ fails to create the object.

Meta