Menu.insertSection

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.

class Menu
void
insertSection

Parameters

position int

the position at which to insert the item

label string

the section label, or %NULL

section MenuModel

a #GMenuModel with the items of the section

Meta

Since

2.32