MenuManager.findItemById

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.

class MenuManager
findItemById
(
string id
,
out uint position
)

Parameters

id string

the identifier of the menu item

position uint

the position within the resulting menu

Return Value

Type: gio.menu.Menu

a #GMenu if successful; otherwise null and position is unset.