Gio.Menu.prototype.insert
function insert(position: Number(gint), label: String, detailed_action: String): void { // Gjs wrapper for g_menu_insert() }
Convenience function for inserting a normal menu item into menu. Combine Gio.MenuItem.new and Gio.Menu.prototype.insert_item for a more flexible alternative.
Since 2.32
- position
the position at which to insert the item
- label
the section label, or null
- detailed_action
the detailed action string, or null