Menu.this

Creates a #GtkMenu and populates it with menu items and submenus according to @model.

The created menu items are connected to actions found in the #GtkApplicationWindow to which the menu belongs - typically by means of being attached to a widget (see gtk_menu_attach_to_widget()) that is contained within the #GtkApplicationWindows widget hierarchy.

Actions can also be added using gtk_widget_insert_action_group() on the menu's attach widget or on any of its parent widgets.

  1. this(GtkMenu* gtkMenu, bool ownedRef)
  2. this()
  3. this(MenuModel model)
    class Menu

Parameters

model MenuModel

a #GMenuModel

Return Value

a new #GtkMenu

Throws

ConstructionException GTK+ fails to create the object.

Meta