aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 02:18:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-06 03:20:23 +0800
commit8b23032f2fde03d2cde5cba32e8b4dbd53a05e49 (patch)
tree9b42abb5f6029b63e945eca7c28c62370ad92365 /mail/em-folder-tree-model.c
parent4978b0bf37a65a50598b2af1ac2c5fb6cc14db5a (diff)
downloadgsoc2013-evolution-8b23032f2fde03d2cde5cba32e8b4dbd53a05e49.tar.gz
gsoc2013-evolution-8b23032f2fde03d2cde5cba32e8b4dbd53a05e49.tar.zst
gsoc2013-evolution-8b23032f2fde03d2cde5cba32e8b4dbd53a05e49.zip
EMFolderTreeModel: Always populate the CamelStore column.
Even in 'Loading...' rows. This way we know the CamelStore is present in all rows, and don't have to test for NULL.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index c9a020e761..25d3d993e4 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -783,7 +783,7 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model,
gtk_tree_store_set (
tree_store, &sub,
COL_STRING_DISPLAY_NAME, _("Loading..."),
- COL_POINTER_CAMEL_STORE, NULL,
+ COL_POINTER_CAMEL_STORE, si->store,
COL_STRING_FULL_NAME, NULL,
COL_STRING_ICON_NAME, NULL,
COL_BOOL_LOAD_SUBDIRS, FALSE,
@@ -1038,8 +1038,7 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
si = g_new (EMFolderTreeModelStoreInfo, 1);
si->display_name = g_strdup (display_name);
- g_object_ref (store);
- si->store = store;
+ si->store = g_object_ref (store);
si->account = account;
si->row = gtk_tree_row_reference_copy (reference);
si->full_hash = g_hash_table_new_full (
@@ -1059,7 +1058,7 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
gtk_tree_store_set (
tree_store, &iter,
COL_STRING_DISPLAY_NAME, _("Loading..."),
- COL_POINTER_CAMEL_STORE, NULL,
+ COL_POINTER_CAMEL_STORE, store,
COL_STRING_FULL_NAME, NULL,
COL_BOOL_LOAD_SUBDIRS, FALSE,
COL_BOOL_IS_STORE, FALSE,