[balsa] Hold gdk lock while updating UI



commit 5c9eedcb3b430f07badb07ec9bcedf473ae68ec4
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Sep 1 23:27:03 2010 -0400

    Hold gdk lock while updating UI
    
    	* src/main-window.c: hold gdk lock while updating UI.

 ChangeLog         |    4 ++++
 src/main-window.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 43b09d3..1e06aa8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-01  Peter Bloomfield
+
+	* src/main-window.c: hold gdk lock while updating UI.
+
 2010-08-31  Peter Bloomfield
 
 	* src/main-window.c: remove unintended debug spew.
diff --git a/src/main-window.c b/src/main-window.c
index 1ec4795..9d05d10 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3075,8 +3075,10 @@ bw_check_messages_thread(struct check_messages_thread_info *info)
     pthread_mutex_lock(&mailbox_lock);
     checking_mail = 0;
     if (info->window) {
+        gdk_threads_enter();
         bw_set_sensitive(info->window, "GetNewMail", TRUE);
         g_object_unref(info->window);
+        gdk_threads_leave();
     }
     pthread_mutex_unlock(&mailbox_lock);
     



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