Menu.insert

Convenience function for inserting a normal menu item into @menu. Combine g_menu_item_new() and g_menu_insert_item() for a more flexible alternative.

class Menu
void
insert
(,
string label
,)

Parameters

position int

the position at which to insert the item

label string

the section label, or %NULL

detailedAction string

the detailed action string, or %NULL

Meta

Since

2.32