aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2003-11-18 06:06:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-11-18 06:06:02 +0800
commitb337ececee63f7b7f76c8f783b7ee5d33f028467 (patch)
treede7d5d18e5b65d67e2a47e909de558facf9fa799 /mail/em-folder-tree.c
parent9a1593d15ca3c4e0e171c4ac413a2ef33d251943 (diff)
downloadgsoc2013-evolution-b337ececee63f7b7f76c8f783b7ee5d33f028467.tar.gz
gsoc2013-evolution-b337ececee63f7b7f76c8f783b7ee5d33f028467.tar.zst
gsoc2013-evolution-b337ececee63f7b7f76c8f783b7ee5d33f028467.zip
more fixes
svn path=/trunk/; revision=23405
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c29
1 files changed, 25 insertions, 4 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 553fef0fa9..6adf2f18d1 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -914,6 +914,26 @@ tree_store_set_folder_info (GtkTreeStore *model, GtkTreeIter *iter,
}
}
+#if 0
+static void
+dump_fi (CamelFolderInfo *fi, int depth)
+{
+ int i;
+
+ while (fi != NULL) {
+ for (i = 0; i < depth; i++)
+ fputs (" ", stdout);
+
+ printf ("path='%s'; full_name='%s'\n", fi->path, fi->full_name);
+
+ if (fi->child)
+ dump_fi (fi->child, depth + 1);
+
+ fi = fi->sibling;
+ }
+}
+#endif
+
static void
tree_row_expanded (GtkTreeView *treeview, GtkTreeIter *root, GtkTreePath *tree_path, EMFolderTree *emft)
{
@@ -965,11 +985,12 @@ tree_row_expanded (GtkTreeView *treeview, GtkTreeIter *root, GtkTreePath *tree_p
}
/* FIXME: camel is totally on crack here, @top's folder info
- * should be @fi and fi->childs should be what we want to fill
+ * should be @fi and fi->child should be what we want to fill
* our tree with... *sigh* */
- if (!strcmp (fi->path, path))
- child = fi->sibling;
- else
+ if (top && !strcmp (fi->full_name, top)) {
+ if (!(child = fi->child))
+ child = fi->sibling;
+ } else
child = fi;
if (child == NULL) {