MenuItem.this

Creates a GMenuItem as an exact copy of an existing menu item in a GMenuModel. item_index must be valid (ie: be sure to call g_menu_model_get_n_items() first). Since 2.34

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

Parameters

model MenuModel

a GMenuModel

itemIndex int

the index of an item in model

Throws

ConstructionException GTK+ fails to create the object.

Meta