get_country_name


Description:

public string? get_country_name ()

Retrieves the country name for the given location.

For a `GWEATHER_LOCATION_COUNTRY` location, this is equivalent to [[email protected]_name].

For a `GWEATHER_LOCATION_REGION` and `GWEATHER_LOCATION_WORLD` location, this method will return `NULL`.

For other location levels, this method will find the parent `GWEATHER_LOCATION_COUNTRY` and return its name.

Parameters:

this

a Location

Returns:

the location's country name




2022 vala-language.org