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).

Parameters

model MenuModel

a #GMenuModel

itemIndex int

the index of an item in @model

Return Value

a new #GMenuItem.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.34