summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-12-31 17:02:21 +0000
committerBenjamin Berg <bberg@redhat.com>2022-02-10 18:02:28 +0100
commit66cae69ad82cfc59435016fba737ce046ffb7e66 (patch)
tree709cf5a375e1868c67b475d6506e0868116c70bc /plugins
parentafa7e4bb9c519e2daf500a6079088669500768c0 (diff)
downloadgnome-settings-daemon-66cae69ad82cfc59435016fba737ce046ffb7e66.tar.gz
Port to GWeather 4
Use the new GWeather major version. The only change consists in replacing GWeatherTimezone with GTimeZone.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/datetime/weather-tz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/datetime/weather-tz.c b/plugins/datetime/weather-tz.c
index 2eac90a2..b76a2b8c 100644
--- a/plugins/datetime/weather-tz.c
+++ b/plugins/datetime/weather-tz.c
@@ -22,7 +22,6 @@
#include "weather-tz.h"
#include "tz.h"
-#define GWEATHER_I_KNOW_THIS_IS_UNSTABLE
#include <libgweather/gweather.h>
static GList *
@@ -65,6 +64,7 @@ load_timezones (GList *cities)
TzLocation *loc;
const gchar *country;
const gchar *timezone_id;
+ GTimeZone *tz;
gdouble latitude;
gdouble longitude;
@@ -77,7 +77,8 @@ load_timezones (GList *cities)
}
country = gweather_location_get_country (l->data);
- timezone_id = gweather_timezone_get_tzid (gweather_location_get_timezone (l->data));
+ tz = gweather_location_get_timezone (l->data);
+ timezone_id = g_time_zone_get_identifier (tz);
gweather_location_get_coords (l->data,
&latitude,
&longitude);