Gio.MenuAttributeIter.prototype.get_next
function get_next(): [ok: Boolean, out_name: String, value: GLib.Variant] {
// Gjs wrapper for g_menu_attribute_iter_get_next()
}
This function combines Gio.MenuAttributeIter.prototype.next with Gio.MenuAttributeIter.prototype.get_name and Gio.MenuAttributeIter.prototype.get_value.
First the iterator is advanced to the next (possibly first) attribute. If that fails, then false is returned and there are no other effects.
If successful, @name and value are set to the name and value of the attribute that has just been advanced to. At this point, Gio.MenuAttributeIter.prototype.get_name and Gio.MenuAttributeIter.prototype.get_value will return the same values again.
The value returned in @name remains valid for as long as the iterator remains at the current position. The value returned in value must be unreffed using GLib.Variant.prototype.unref when it is no longer in use.
Since 2.32
- ok
true on success, or false if there is no additional attribute
- out_name
the type of the attribute
- value
the attribute value