MenuManager.findItemById

gio.menu.Menu findItemById(string id, out uint position)

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

idthe identifier of the menu item
positionthe position within the resulting menu

Returns

a #GMenu if successful; otherwise

null and position is unset.