aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-04 21:25:03 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-04 21:25:03 +0200
commit9f2f8e9fb88d37d3488de910feb317da349df1cf (patch)
tree93dadc666a25dc5e28dcab86d77d4af77b6df8af /src
parent5663ffb1a4bf38561c8c03f89366911ce4f8894e (diff)
parent4f34f7b8720a8ae0686ebac8ef7faa8b543f26e6 (diff)
downloadayatana-ido-9f2f8e9fb88d37d3488de910feb317da349df1cf.tar.gz
ayatana-ido-9f2f8e9fb88d37d3488de910feb317da349df1cf.tar.bz2
ayatana-ido-9f2f8e9fb88d37d3488de910feb317da349df1cf.zip
Merge branch 'tari01-pr/fix-deprecation-warning'
Attributes GH PR #31: https://github.com/AyatanaIndicators/ayatana-ido/pull/31
Diffstat (limited to 'src')
-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);