MenuLinkIter.getNext

This function combines gio.menu_link_iter.MenuLinkIter.next with gio.menu_link_iter.MenuLinkIter.getName and gio.menu_link_iter.MenuLinkIter.getValue.

First the iterator is advanced to the next (possibly first) link. If that fails, then false is returned and there are no other effects.

If successful, out_link and value are set to the name and #GMenuModel of the link that has just been advanced to. At this point, gio.menu_link_iter.MenuLinkIter.getName and gio.menu_link_iter.MenuLinkIter.getValue will return the same values again.

The value returned in out_link remains valid for as long as the iterator remains at the current position. The value returned in value must be unreffed using gobject.object.ObjectG.unref when it is no longer in use.

class MenuLinkIter
bool
getNext

Parameters

the name of the link

value gio.menu_model.MenuModel

the linked #GMenuModel

Return Value

Type: bool

true on success, or false if there is no additional link