Method

GntMenuget_item

since: 2.3

Declaration [src]

GntMenuItem*
gnt_menu_get_item (
  GntMenu* menu,
  const char* id
)

Description [src]

Return the GntMenuItem with the given ID.

Available since: 2.3

Parameters

id

Type: const char*

The ID for an item.

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

Return value

Type: GntMenuItem

The menuitem with the given ID, or NULL.

The data is owned by the instance.