[balsa/gtk3] g_thread_supported is deprecated in glib-2.36



commit b292236e120b31d552a0cca7199db5cbc9d02561
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Apr 11 07:40:55 2013 -0400

    g_thread_supported is deprecated in glib-2.36
    
        * libbalsa/libbalsa.c (libbalsa_init): g_thread_supported is
        deprecated in glib-2.36.

 ChangeLog           |    5 +++++
 libbalsa/libbalsa.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 844e183..f12ab71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-11  Peter Bloomfield
+
+       * libbalsa/libbalsa.c (libbalsa_init): g_thread_supported is
+       deprecated in glib-2.36.
+
 2013-04-10  Peter Bloomfield
 
        * src/balsa-mblist.c (update_mailbox_idle),
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index ba2fe62..8eb8f6c 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -91,9 +91,11 @@ libbalsa_init(LibBalsaInformationFunc information_callback)
 #endif
 
 #ifdef BALSA_USE_THREADS
+#if !GLIB_CHECK_VERSION(2, 35, 0)
     if (!g_thread_supported()) {
        g_error("Threads have not been initialised.");
     }
+#endif                          /* !GLIB_CHECK_VERSION(2, 35, 0) */
     main_thread_id = pthread_self();
 #endif
 


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