[ Version ( since = "40" ) ]
public Location? next_child (owned Location? child)
Allows iterating all children.
Pass null to get the first child, and any child to get the next one. Note that the reference to
child
is taken, meaning iterating all children is as simple as:
g_autoptr(GWeatherLocation) child = NULL;
while ((child = gweather_location_next_child (location, child)))
{
// Do something with child
}
this |
a Location |
child |
The child |
The next child, or null |