prependSubmenu

open fun prependSubmenu(label: String? = null, submenu: MenuModel)

Convenience function for prepending a submenu menu item to the start of @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for a more flexible alternative.

Since

2.32

Parameters

label

the section label, or null

submenu

a #GMenuModel with the items of the submenu