Menu.prependSection

Convenience function for prepending a section menu item to the start of menu. Combine gio.menu_item.MenuItem.newSection and gio.menu.Menu.insertItem for a more flexible alternative.

class Menu
void
prependSection

Parameters

label string

the section label, or null

section gio.menu_model.MenuModel

a #GMenuModel with the items of the section