Gio.Menu.prototype.insert_section
function insert_section(position: Number(gint), label: String, section: Gio.MenuModel): void {
// Gjs wrapper for g_menu_insert_section()
}
Convenience function for inserting a section menu item into menu. Combine Gio.MenuItem.new_section 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
- section
a Gio.MenuModel with the items of the section