Menu.prependSection

Convenience function for prepending a section menu item to the start of menu. Combine g_menu_item_new_section() and g_menu_insert_item() for a more flexible alternative. Since 2.32

class Menu
void
prependSection

Parameters

label string

the section label, or NULL. [allow-none]

section MenuModel

a GMenuModel with the items of the section

Meta