Method

GioMenuModelget_item_link

Declaration

GMenuModel*
g_menu_model_get_item_link (
  GMenuModel* model,
  gint item_index,
  const gchar* link
)

Description

Queries the item at position item_index in model for the link specified by link.

If the link exists, the linked GMenuModel is returned. If the link does not exist, NULL is returned.

Available since:2.32

Parameters

item_index gint
 

The index of the item.

link const gchar*
 

The link to query.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: GMenuModel
 

The linked GMenuModel, or NULL.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.