Method

GioMenuinsert_section

since: 2.32

Declaration [src]

void
g_menu_insert_section (
  GMenu* menu,
  gint position,
  const gchar* label,
  GMenuModel* section
)

Description [src]

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.

Available since: 2.32

Parameters

position

Type: gint

The position at which to insert the item.

label

Type: const gchar*

The section label, or NULL.

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

Type: GMenuModel

A GMenuModel with the items of the section.

The data is owned by the caller of the method.