Gio.Menu.prototype.prepend_section
function prepend_section(label: String, section: Gio.MenuModel): void {
// Gjs wrapper for g_menu_prepend_section()
}
Convenience function for prepending a section menu item to the start of menu. Combine Gio.MenuItem.new_section and Gio.Menu.prototype.insert_item for a more flexible alternative.
Since 2.32
- label
the section label, or null
- section
a Gio.MenuModel with the items of the section