aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-05-03 13:58:25 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-04 21:23:25 +0200
commit4f34f7b8720a8ae0686ebac8ef7faa8b543f26e6 (patch)
tree93dadc666a25dc5e28dcab86d77d4af77b6df8af
parent5663ffb1a4bf38561c8c03f89366911ce4f8894e (diff)
downloadayatana-ido-4f34f7b8720a8ae0686ebac8ef7faa8b543f26e6.tar.gz
ayatana-ido-4f34f7b8720a8ae0686ebac8ef7faa8b543f26e6.tar.bz2
ayatana-ido-4f34f7b8720a8ae0686ebac8ef7faa8b543f26e6.zip
src/idolocationmenuitem.c: Fix deprecated g_time_zone_new warning.
Fixes AyatanaIndicators/ayatana-ido#30
-rw-r--r--src/idolocationmenuitem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/idolocationmenuitem.c b/src/idolocationmenuitem.c
index 8b16807..6999cc1 100644
--- a/src/idolocationmenuitem.c
+++ b/src/idolocationmenuitem.c
@@ -53,7 +53,12 @@ update_timestamp (IdoLocationMenuItem * self)
IdoLocationMenuItemPrivate * priv = ido_location_menu_item_get_instance_private(self);
- tz = g_time_zone_new (priv->timezone);
+ #if GLIB_CHECK_VERSION(2, 68, 0)
+ tz = g_time_zone_new_identifier (priv->timezone);
+ #else
+ tz = g_time_zone_new (priv->timezone);
+ #endif
+
if (tz == NULL)
tz = g_time_zone_new_local ();
date_time = g_date_time_new_now (tz);