MenuModel.getItemLink

gio.menu_model.MenuModel getItemLink(int itemIndex, string link)

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.

Parameters

itemIndexthe index of the item
linkthe link to query

Returns

the linked #GMenuModel, or null