Virtual Method

GioMenuModelget_item_link

since: 2.32

Declaration

GMenuModel*
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

Type: gint

The index of the item.

link

Type: 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

Type: GMenuModel

The linked GMenuModel, or NULL.

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