Method

GioMenuinsert

Declaration

void
g_menu_insert (
  GMenu* menu,
  gint position,
  const gchar* label,
  const gchar* detailed_action
)

Description

Convenience function for inserting a normal menu item into menu. Combine g_menu_item_new() and g_menu_insert_item() for a more flexible alternative.

Available since:2.32

Parameters

position gint
 

The position at which to insert the item.

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.
detailed_action const gchar*
 

The detailed action string, 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.