[pan2] Fix: deprecated g_type_init() on glib2 > 2.36
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] Fix: deprecated g_type_init() on glib2 > 2.36
- Date: Sun, 10 Apr 2016 20:09:59 +0000 (UTC)
commit 73d0abdc9b53b39981ecfa35a62cab28853b51f3
Author: Detlef Graef <detlef graef yahoo de>
Date: Tue Apr 5 17:49:40 2016 +0200
Fix: deprecated g_type_init() on glib2 > 2.36
pan/gui/pan.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index cbbb14b..40aedb9 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -884,7 +884,10 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init();
+#endif
+
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init (0);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]