newSubmenu

fun newSubmenu(label: String? = null, submenu: MenuModel): MenuItem

Creates a new #GMenuItem representing a submenu.

This is a convenience API around g_menu_item_new() and g_menu_item_set_submenu().

Return

a new #GMenuItem

Since

2.32

Parameters

label

the section label, or null

submenu

a #GMenuModel with the items of the submenu