Menu.prependSubmenu

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

class Menu
void
prependSubmenu

Parameters

label string

the section label, or NULL

submenu MenuModel

a gio.MenuModel with the items of the submenu

Meta

Since

2.32