aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-09-01 05:44:24 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-09-01 05:44:24 +0800
commit578b942b6a056c6d6e5d42e823b24dd8e5d400e1 (patch)
tree42b32dd11d50f77484004213ac188425bba51da8 /shell/e-storage-set-view.c
parent639173be602e469419a73760cdb9c696fdbf693c (diff)
downloadgsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.tar.gz
gsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.tar.zst
gsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.zip
Don't convert folder name to UTF-8 manually... (setup_stock_folders): ...
* e-local-storage.c (setup_folder_as_stock): Don't convert folder name to UTF-8 manually... (setup_stock_folders): ... just use U_() here. (impl_get_display_name): Marked string for translation (with U_). * e-storage-set-view.c (storage_sort_callback): s/strcasecmp/g_utf8_collate/ (folder_sort_callback): ditto * e-summary-storage.c (impl_get_display_name): Marked string for translation (with U_). svn path=/trunk/; revision=12546
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 928ebfaf9c..3ebeb14f06 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -36,6 +36,7 @@
#include <gal/e-table/e-tree-memory-callbacks.h>
#include <gal/e-table/e-cell-tree.h>
#include <gal/e-table/e-cell-text.h>
+#include <gal/unicode/gunicode.h>
#include <libgnome/gnome-util.h>
@@ -162,15 +163,15 @@ storage_sort_callback (ETreeMemory *etmm,
if (path2_local)
return 1;
- return strcasecmp (e_tree_model_value_at (E_TREE_MODEL (etmm), node1, 0),
- e_tree_model_value_at (E_TREE_MODEL (etmm), node2, 0));
+ return g_utf8_collate (e_tree_model_value_at (E_TREE_MODEL (etmm), node1, 0),
+ e_tree_model_value_at (E_TREE_MODEL (etmm), node2, 0));
}
static int
folder_sort_callback (ETreeMemory *etmm, ETreePath path1, ETreePath path2, gpointer closure)
{
- return g_strcasecmp (e_tree_model_value_at (E_TREE_MODEL (etmm), path1, 0),
- e_tree_model_value_at (E_TREE_MODEL (etmm), path2, 0));
+ return g_utf8_collate (e_tree_model_value_at (E_TREE_MODEL (etmm), path1, 0),
+ e_tree_model_value_at (E_TREE_MODEL (etmm), path2, 0));
}