[balsa/gtk3] g_type_init is deprecated



commit 3878176723e27d761fd98b3263487cfc21a57918
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Apr 9 17:35:51 2013 -0400

    g_type_init is deprecated
    
        * libbalsa/imap/imap_tst.c (main): g_type_init is deprecated.
        * src/main.c (threads_init): ditto.

 ChangeLog                |    5 +++++
 libbalsa/imap/imap_tst.c |    2 ++
 src/main.c               |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 17cf8e2..9df30fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-09  Peter Bloomfield
+
+       * libbalsa/imap/imap_tst.c (main): g_type_init is deprecated.
+       * src/main.c (threads_init): ditto.
+
 2013-04-08  Peter Bloomfield
 
        * configure.ac: add webkit2 as an option for --with-html-widget.
diff --git a/libbalsa/imap/imap_tst.c b/libbalsa/imap/imap_tst.c
index d13d9cc..e56563f 100644
--- a/libbalsa/imap/imap_tst.c
+++ b/libbalsa/imap/imap_tst.c
@@ -648,7 +648,9 @@ process_options(int argc, char *argv[])
 
 int
 main(int argc, char *argv[]) {
+#if !GLIB_CHECK_VERSION(2, 35, 0)
   g_type_init();
+#endif                          /* !GLIB_CHECK_VERSION(2, 35, 0) */
 
   if(argc<=1) {
     test_envelope_strings();
diff --git a/src/main.c b/src/main.c
index 7793730..16e81bb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -255,7 +255,9 @@ pthread_mutex_t checking_mail_lock = PTHREAD_MUTEX_INITIALIZER;
 static void
 threads_init(void)
 {
+#if !GLIB_CHECK_VERSION(2, 35, 0)
     g_type_init();
+#endif                          /* !GLIB_CHECK_VERSION(2, 35, 0) */
 
     pthread_mutex_init(&send_messages_lock, NULL);
     if (pipe(mail_thread_pipes) < 0) {


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