Method

IdeMenuManagerfind_item_by_id

Declaration

GMenu*
ide_menu_manager_find_item_by_id (
  IdeMenuManager* self,
  const char* id,
  guint* position
)

Description

Locates a menu item that matches id and sets the position within the resulting GMenu to position.

If no match is found, NULL is returned.

Parameters

id

Type: const char*

The identifier of the menu item.

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

Type: guint*

The position within the resulting menu.

The argument will be set by the function.

Return value

Type: GMenu

A GMenu if successful; otherwise NULL and position is unset.

The data is owned by the instance.
The return value can be NULL.