Menu.appendSection

void appendSection(string label, gio.menu_model.MenuModel section)

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.

Parameters

labelthe section label, or null
sectiona #GMenuModel with the items of the section