[balsa] Build with threads disabled
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Subject: [balsa] Build with threads disabled
- Date: Sun, 7 Jun 2009 12:36:03 -0400 (EDT)
commit c669f4abae8d2e394cf39d67edfda975270c3f74
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jun 7 12:35:57 2009 -0400
Build with threads disabled
---
ChangeLog | 6 ++++++
libbalsa/mailbox.c | 4 +++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8dde33f..90bb62b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-06-07 Peter Bloomfield
+ Build with threads disabled
+
+ * libbalsa/mailbox.c (lbm_msgno_changed): fix conditional code.
+
+2009-06-07 Peter Bloomfield
+
Update display in an idle callback.
* libbalsa/mailbox.h: new array of msgnos that have changed.
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 5d9d32c..581eb82 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -445,10 +445,12 @@ libbalsa_mailbox_index_set_flags(LibBalsaMailbox *mailbox,
destroys mailbox. Must leave it in sane state.
*/
+#ifdef BALSA_USE_THREADS
static void lbm_msgno_changed_expunged_cb(LibBalsaMailbox * mailbox,
guint seqno);
static void lbm_get_index_entry_expunged_cb(LibBalsaMailbox * mailbox,
guint seqno);
+#endif
static void
libbalsa_mailbox_finalize(GObject * object)
@@ -1256,6 +1258,7 @@ lbm_msgno_changed(LibBalsaMailbox * mailbox, guint seqno,
GtkTreeIter * iter)
{
GtkTreePath *path;
+#ifdef BALSA_USE_THREADS
gboolean is_main_thread = !libbalsa_am_i_subthread();
#if DEBUG
@@ -1263,7 +1266,6 @@ lbm_msgno_changed(LibBalsaMailbox * mailbox, guint seqno,
g_warning("Main thread is not holding gdk lock");
#endif
-#ifdef BALSA_USE_THREADS
if (!is_main_thread) {
pthread_mutex_lock(&msgnos_changed_lock);
if (!mailbox->msgnos_changed) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]