aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-dialog.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-17 05:59:05 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-17 05:59:05 +0800
commit907c848f766e970d003dec3ac4754534ec25c4d4 (patch)
treef5bd262e1e99b481d354925b0a526a7584de3080 /mail/subscribe-dialog.c
parent5a34c99b818e20512a2d01242d36cb9768f15e18 (diff)
downloadgsoc2013-evolution-907c848f766e970d003dec3ac4754534ec25c4d4.tar.gz
gsoc2013-evolution-907c848f766e970d003dec3ac4754534ec25c4d4.tar.zst
gsoc2013-evolution-907c848f766e970d003dec3ac4754534ec25c4d4.zip
Sort the nodes here... (fe_sort_folder): ... using this function.
2001-08-16 Peter Williams <peterw@ximian.com> * subscribe-dialog.c (fe_got_children): Sort the nodes here... (fe_sort_folder): ... using this function. * folder-browser-ui.c (folder_browser_ui_message_loaded): Check for uic == NULL. I'm not sure how this could happen, but... svn path=/trunk/; revision=12130
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r--mail/subscribe-dialog.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index 9b157179a7..7d5a07001a 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -663,6 +663,17 @@ fe_return_false (void)
return FALSE;
}
+static gint
+fe_sort_folder (ETreeMemory *etmm, ETreePath left, ETreePath right, gpointer user_data)
+{
+ ftree_node *n_left, *n_right;
+
+ n_left = e_tree_memory_node_get_data (etmm, left);
+ n_right = e_tree_memory_node_get_data (etmm, right);
+
+ return g_strcasecmp (ftree_node_get_name (n_left), ftree_node_get_name (n_right));
+}
+
/* scanning */
static void
@@ -688,6 +699,10 @@ fe_got_children (CamelStore *store, gchar *prefix, CamelFolderInfo *info, gpoint
closure->path,
0,
node);
+ e_tree_memory_sort_node (E_TREE_MEMORY (closure->ftree),
+ closure->path,
+ fe_sort_folder,
+ NULL);
}
if (closure->data)