MenuItem.newSubmenu

Creates a new #GMenuItem representing a submenu.

This is a convenience API around gio.menu_item.MenuItem.new_ and gio.menu_item.MenuItem.setSubmenu.

class MenuItem
static
newSubmenu

Parameters

label string

the section label, or null

submenu gio.menu_model.MenuModel

a #GMenuModel with the items of the submenu

Return Value

Type: gio.menu_item.MenuItem

a new #GMenuItem