aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-06 16:11:51 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-06 16:11:51 +0800
commit9279a2cf22757bba12c54598963099c638504c80 (patch)
treecf8e7f314a82ae393c32da3f7d20ecee905033c4
parent6cb57f5f7fc5e798b87e5bd1481052592704b0f2 (diff)
downloadgsoc2013-evolution-9279a2cf22757bba12c54598963099c638504c80.tar.gz
gsoc2013-evolution-9279a2cf22757bba12c54598963099c638504c80.tar.zst
gsoc2013-evolution-9279a2cf22757bba12c54598963099c638504c80.zip
ref the emfoldertree in our thread message. (em_folder_tree_set_selected):
2004-04-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_row_expanded): ref the emfoldertree in our thread message. (em_folder_tree_set_selected): same. (emft_get_folder_info__free): unref it. * mail-folder-cache.c (ping_store): use thread_queued_slow not thread_queued - we dont care when it runs. * em-folder-view.c (emfv_set_folder_uri): use thread_new for getting the folder, we do elsewhere, and it aids interactivity. svn path=/trunk/; revision=25330
-rw-r--r--mail/ChangeLog13
-rw-r--r--mail/em-folder-tree.c3
-rw-r--r--mail/em-folder-view.c2
-rw-r--r--mail/mail-folder-cache.c2
4 files changed, 18 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 63ff3de8bf..b39f43c780 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,16 @@
+2004-04-06 Not Zed <NotZed@Ximian.com>
+
+ * em-folder-tree.c (emft_tree_row_expanded): ref the emfoldertree
+ in our thread message.
+ (em_folder_tree_set_selected): same.
+ (emft_get_folder_info__free): unref it.
+
+ * mail-folder-cache.c (ping_store): use thread_queued_slow not
+ thread_queued - we dont care when it runs.
+
+ * em-folder-view.c (emfv_set_folder_uri): use thread_new for
+ getting the folder, we do elsewhere, and it aids interactivity.
+
2004-04-05 Jeffrey Stedfast <fejj@ximian.com>
* em-migrate.c (em_migrate_dir): Migrate the thread_list
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 43fa77cb7a..5996168b5f 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -1610,6 +1610,7 @@ emft_get_folder_info__free (struct _mail_msg *mm)
camel_store_free_folder_info (m->store, m->fi);
gtk_tree_row_reference_free (m->root);
+ g_object_unref(m->emft);
camel_object_unref (m->store);
g_free (m->select_uri);
g_free (m->top);
@@ -1686,6 +1687,7 @@ emft_tree_row_expanded (GtkTreeView *treeview, GtkTreeIter *root, GtkTreePath *t
camel_object_ref (store);
m->store = store;
m->emft = emft;
+ g_object_ref(emft);
m->top = g_strdup (top);
m->flags = CAMEL_STORE_FOLDER_INFO_RECURSIVE;
m->select_uri = NULL;
@@ -2718,6 +2720,7 @@ em_folder_tree_set_selected (EMFolderTree *emft, const char *uri)
m->root = gtk_tree_row_reference_copy (row);
m->store = store;
m->emft = emft;
+ g_object_ref(emft);
m->top = top ? g_strdup (top) : NULL;
m->flags = CAMEL_STORE_FOLDER_INFO_FAST | CAMEL_STORE_FOLDER_INFO_RECURSIVE;
m->select_uri = g_strdup (uri);
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index fe647000a1..b1d1e43396 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -393,7 +393,7 @@ emfv_set_folder_uri(EMFolderView *emfv, const char *uri)
if (emfv->preview)
em_format_format((EMFormat *)emfv->preview, NULL, NULL, NULL);
- mail_get_folder(uri, 0, emfv_got_folder, emfv, mail_thread_queued);
+ mail_get_folder(uri, 0, emfv_got_folder, emfv, mail_thread_new);
}
static void
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 4f8ef4441e..b6b0f86b4b 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -843,7 +843,7 @@ ping_store (gpointer key, gpointer val, gpointer user_data)
m->store = store;
camel_object_ref (store);
- e_thread_put (mail_thread_queued, (EMsg *) m);
+ e_thread_put (mail_thread_queued_slow, (EMsg *) m);
}
static gboolean