insertSection

open fun insertSection(position: Int, label: String? = null, section: MenuModel)

Convenience function for inserting a section menu item into @menu. Combine g_menu_item_new_section() and g_menu_insert_item() for a more flexible alternative.

Since

2.32

Parameters

position

the position at which to insert the item

label

the section label, or null

section

a #GMenuModel with the items of the section