MenuModel.getItemLink

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.

class MenuModel
getItemLink
(,
string link
)

Parameters

itemIndex int

the index of the item

the link to query

Return Value

Type: gio.menu_model.MenuModel

the linked #GMenuModel, or null