Adapt to the libgweather API changes

The deprecated GweatherForecastType enumeration was dropped from the
API, and gweather_info_new() lost the forecast type parameter.

This requires bumping up the minimum version of libgweather we require
to build Calendar. Ideally, we could do a version check and an ifdef
dance to keep Calendar building with the previous versions of
libgweather, but since we were requiring version 3.24 I don't think it's
worth it.
This commit is contained in:
Emmanuele Bassi
2017-12-12 03:04:28 +00:00
parent 8670c6fd8e
commit a4d21a72c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ update_location (GcalWeatherService *self,
g_debug ("Got new weather service location: '%s'",
(location == NULL)? "<null>" : gweather_location_get_name (location));
self->gweather_info = gweather_info_new (location, GWEATHER_FORECAST_ZONE | GWEATHER_FORECAST_LIST);
self->gweather_info = gweather_info_new (location);
/* NOTE: We do not get detailed infos for GWEATHER_PROVIDER_ALL.
* This combination works fine, though. We should open a bug / investigate