aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
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 /mail/em-folder-tree.c
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
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c3
1 files changed, 3 insertions, 0 deletions
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);