MenuItem.setSubmenu

Sets or unsets the "submenu" link of menu_item to submenu.

If submenu is non-NULL, it is linked to. If it is NULL then the link is unset.

The effect of having one menu appear as a submenu of another is exactly as it sounds.

class MenuItem
void
setSubmenu

Parameters

submenu MenuModel

a gio.MenuModel, or NULL

Meta

Since

2.32