next_child


Description:

[ 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
}

Parameters:

this

a Location

child

The child

Returns:

The next child, or null