Menu.insertSection

Convenience function for inserting a section menu item into menu. Combine gio.menu_item.MenuItem.newSection and gio.menu.Menu.insertItem for a more flexible alternative.

class Menu
void
insertSection

Parameters

position int

the position at which to insert the item

label string

the section label, or null

section gio.menu_model.MenuModel

a #GMenuModel with the items of the section