Menu.this

Creates a gtk.Menu and populates it with menu items and submenus according to model.

The created menu items are connected to actions found in the gtk.ApplicationWindow to which the menu belongs - typically by means of being attached to a widget (see Menu.attachToWidget) that is contained within the gtk.ApplicationWindows widget hierarchy.

Actions can also be added using Widget.insertActionGroup 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

Return Value

a new gtk.Menu

Throws

ConstructionException GTK+ fails to create the object.

Meta