Menu.prepend

Convenience function for prepending a normal menu item to the start of menu. Combine gio.menu_item.MenuItem.new_ and gio.menu.Menu.insertItem for a more flexible alternative.

class Menu
void
prepend
(
string label = null
,
string detailedAction = null
)

Parameters

label string

the section label, or null

detailedAction string

the detailed action string, or null