Menu.appendSection

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

class Menu
void
appendSection

Parameters

label string

the section label, or null

section gio.menu_model.MenuModel

a #GMenuModel with the items of the section