MenuAttributeIter.getNext

bool getNext(out string outName, out glib.variant.Variant value)

This function combines [gio.menu_attribute_iter.MenuAttributeIter.next] with [gio.menu_attribute_iter.MenuAttributeIter.getName] and [gio.menu_attribute_iter.MenuAttributeIter.getValue].

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.menu_attribute_iter.MenuAttributeIter.getName] and [gio.menu_attribute_iter.MenuAttributeIter.getValue] 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.Variant.unref] when it is no longer in use.

Parameters

outNamethe type of the attribute
valuethe attribute value

Returns

true on success, or false if there is no additional

attribute