Gio.Menu.prototype.prepend
function prepend(label: String, detailed_action: String): void { // Gjs wrapper for g_menu_prepend() }
Convenience function for prepending a normal menu item to the start of menu. Combine Gio.MenuItem.new and Gio.Menu.prototype.insert_item for a more flexible alternative.
Since 2.32
- label
the section label, or null
- detailed_action
the detailed action string, or null