[gnumeric] Compilation: avoid deprecated g_thread_init.



commit f699aa870fd7fc0095509c067c8ef257e845bfd2
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 3 11:09:20 2013 -0500

    Compilation: avoid deprecated g_thread_init.

 ChangeLog         |    5 +++++
 src/libgnumeric.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 95cba1a..ceedc60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-03  Morten Welinder  <terra gnome org>
+
+       * src/libgnumeric.c (gnm_pre_parse_init): Don't call deprecated
+       g_thread_init if compiled with later than glib 2.32.0.
+
 2013-03-02  Jean Brefort  <jean brefort normalesup org>
 
        * src/gnm-pane-impl.h: remove alignments.
diff --git a/src/libgnumeric.c b/src/libgnumeric.c
index 88a5b92..d9de1ca 100644
--- a/src/libgnumeric.c
+++ b/src/libgnumeric.c
@@ -185,7 +185,9 @@ gnm_pre_parse_init (int argc, gchar const **argv)
                g_mem_set_vtable (glib_mem_profiler_table);
        }
 
+#if !GLIB_CHECK_VERSION(2,32,0)
        g_thread_init (NULL);
+#endif
        g_type_init ();
 
        /* On win32 argv contains 'ansi' encoded args.  We need to manually


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]