Gio.MenuLinkIter.prototype.get_next
function get_next(): [ok: Boolean, out_link: String, value: Gio.MenuModel] {
// Gjs wrapper for g_menu_link_iter_get_next()
}
This function combines Gio.MenuLinkIter.prototype.next with Gio.MenuLinkIter.prototype.get_name and Gio.MenuLinkIter.prototype.get_value.
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 Gio.MenuModel of the link that has just been advanced to. At this point, Gio.MenuLinkIter.prototype.get_name and Gio.MenuLinkIter.prototype.get_value 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.prototype.unref when it is no longer in use.
Since 2.32
- ok
true on success, or false if there is no additional link
- out_link
the name of the link
- value
the linked Gio.MenuModel