[gtk/ebassi/timezone-ctor] Cope with g_time_zone_new() deprecation in GLib 2.68
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/timezone-ctor] Cope with g_time_zone_new() deprecation in GLib 2.68
- Date: Mon, 23 Nov 2020 11:34:07 +0000 (UTC)
commit b6315887957b7a4cd9ee7f8203f11107a2ad1238
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Nov 23 11:33:22 2020 +0000
Cope with g_time_zone_new() deprecation in GLib 2.68
demos/gtk-demo/listview_clocks.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/demos/gtk-demo/listview_clocks.c b/demos/gtk-demo/listview_clocks.c
index 22a463823d..b25a044712 100644
--- a/demos/gtk-demo/listview_clocks.c
+++ b/demos/gtk-demo/listview_clocks.c
@@ -346,6 +346,10 @@ create_clocks_model (void)
result = g_list_store_new (GTK_TYPE_CLOCK);
+#if GLIB_CHECK_VERSION (2, 67, 0)
+# define g_time_zone_new g_time_zone_new_identifier
+#endif
+
/* local time */
clock = gtk_clock_new ("local", NULL);
g_list_store_append (result, clock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]