Menu.prependSection

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

class Menu
void
prependSection

Parameters

label string

the section label, or NULL

section MenuModel

a gio.MenuModel with the items of the section

Meta

Since

2.32