MenuItem.this

Creates a new gtk.MenuItem

If label is non-NULL it is used to set the "label" attribute of the new item.

If detailed_action is non-NULL it is used to set the "action" and possibly the "target" attribute of the new item. See Menu.itemSetDetailedAction for more information.

  1. this(GMenuItem* gMenuItem, bool ownedRef)
  2. this(string label, string detailedAction)
    class MenuItem
    this
    (
    string label
    ,)
  3. this(MenuModel model, int itemIndex)

Parameters

label string

the section label, or NULL

detailedAction string

the detailed action string, or NULL

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.32