[balsa/gtk3] Build without threads



commit 0375f25ea90178852b3a240785fbe68dda502418
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Feb 21 12:53:32 2013 -0500

    Build without threads
    
        * libbalsa/mailbox.c (libbalsa_mailbox_finalize): build without
        threads.

 ChangeLog          |    5 +++++
 libbalsa/mailbox.c |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b9a3252..5942b9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-02-21  Peter Bloomfield
 
+       * libbalsa/mailbox.c (libbalsa_mailbox_finalize): build without
+       threads.
+
+2013-02-21  Peter Bloomfield
+
        * src/main-window.c: do not leave progress bar crawling.
 
 2013-02-21  Peter Bloomfield
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index d8648c8..cd1f427 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -437,7 +437,7 @@ libbalsa_mailbox_index_set_flags(LibBalsaMailbox *mailbox,
    destroys mailbox. Must leave it in sane state.
 */
 
-#ifdef BALSA_USE_THREADS
+#if 0 && defined(BALSA_USE_THREADS)
 static void lbm_msgno_changed_expunged_cb(LibBalsaMailbox * mailbox,
                                           guint seqno);
 static void lbm_get_index_entry_expunged_cb(LibBalsaMailbox * mailbox,
@@ -473,7 +473,7 @@ libbalsa_mailbox_finalize(GObject * object)
     mailbox->filters = NULL;
     mailbox->filters_loaded = FALSE;
 
-#ifdef BALSA_USE_THREADS
+#if 0 && defined(BALSA_USE_THREADS)
     if (mailbox->msgnos_pending) {
         g_signal_handlers_disconnect_by_func(mailbox,
                                              lbm_get_index_entry_expunged_cb,
@@ -2902,6 +2902,7 @@ mbox_model_get_path(GtkTreeModel * tree_model, GtkTreeIter * iter)
 static GdkPixbuf *status_icons[LIBBALSA_MESSAGE_STATUS_ICONS_NUM];
 static GdkPixbuf *attach_icons[LIBBALSA_MESSAGE_ATTACH_ICONS_NUM];
 
+#if 0 && defined(BALSA_USE_THREADS)
 /* Protects access to mailbox->msgnos_pending; may be locked 
  * with or without the gdk lock, so WE MUST NOT GRAB THE GDK LOCK WHILE
  * HOLDING IT. */
@@ -2915,7 +2916,6 @@ lbm_get_index_entry_expunged_cb(LibBalsaMailbox * mailbox, guint seqno)
     pthread_mutex_unlock(&get_index_entry_lock);
 }
 
-#if 0 && defined(BALSA_USE_THREADS)
 static void
 lbm_get_index_entry_real(LibBalsaMailbox * mailbox)
 {


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