[balsa/gtk3] Use idle callback to select message or set cursor



commit f500d4da01d4e010b777038ee71889d30f50719d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Mar 3 17:27:40 2013 -0500

    Use idle callback to select message or set cursor
    
        * src/balsa-index.c (balsa_index_scroll_on_open): always use an
        idle callback to select a message or set the tree-view's cursor.

 ChangeLog         |    5 +++++
 src/balsa-index.c |    5 +----
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6ef801a..b6b44a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-03  Peter Bloomfield
+
+       * src/balsa-index.c (balsa_index_scroll_on_open): always use an
+       idle callback to select a message or set the tree-view's cursor.
+
 2013-03-02  Peter Bloomfield
 
        * libbalsa/mailbox.c (lbm_changed_schedule_idle),
diff --git a/src/balsa-index.c b/src/balsa-index.c
index c797ddc..541d8b4 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -888,10 +888,7 @@ balsa_index_scroll_on_open(BalsaIndex *index)
     gtk_tree_path_free(path);
     data->select = (view_on_open && GPOINTER_TO_INT(view_on_open))
         || balsa_app.view_message_on_open;
-    if (libbalsa_am_i_subthread())
-        gdk_threads_add_idle((GSourceFunc)bi_view_on_open, data);
-    else
-        bi_view_on_open(data);
+    g_idle_add((GSourceFunc)bi_view_on_open, data);
 }
 
 static LibBalsaCondition *cond_undeleted;


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