Menu.prepend

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

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.

Parameters

labelthe section label, or null
detailedActionthe detailed action string, or null