MenuItem.this

Creates a new #GMenuItem.

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 gio.menu_item.MenuItem.setDetailedAction for more information.

class MenuItem
this
(
string label = null
,
string detailedAction = null
)

Parameters

label string

the section label, or null

detailedAction string

the detailed action string, or null

Return Value

a new #GMenuItem