GNOME Bugzilla – Bug 791317
GWeatherLocation: Remove _get_world_for_path() API
Last modified: 2017-12-07 00:30:26 UTC
As mentioned in https://bugzilla.gnome.org/show_bug.cgi?id=791289#c7
Created attachment 365143 [details] [review] GWeatherLocation: Remove _get_world_for_path() API And the changes it required from commit ad604b79. There are a number of internal uses of gweather_location_get_world(), including in the GWeatherTimezone code, and adding new API for the sake of our tests feels wrong, and would complicate the public API for no reason. Instead, allow using the LIBGWEATHER_LOCATIONS_PATH envvar to override the location of the Locations.xml file. This makes it easy to use the same API in our tests and installed.
Attachment 365143 [details] pushed as d8e6152 - GWeatherLocation: Remove _get_world_for_path() API