Menu.insertSubmenu

Convenience function for inserting a submenu menu item into menu. Combine Menu.itemNewSubmenu and Menu.insertItem for a more flexible alternative.

class Menu
void
insertSubmenu

Parameters

position int

the position at which to insert the item

label string

the section label, or NULL

submenu MenuModel

a gio.MenuModel with the items of the submenu

Meta

Since

2.32