Method

GioMenuprepend_section

Declaration

void
g_menu_prepend_section (
  GMenu* menu,
  const gchar* label,
  GMenuModel* section
)

Description

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.

Available since:2.32

Parameters

label const gchar*
 

The section label, or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
section GMenuModel
 

A GMenuModel with the items of the section.

 The data is owned by the caller of the function.