changeset 4434:35d5b1b8aa1e

When sorting, use g_utf8_collate instead of g_ascii_strcasecmp (Bugzilla #205)
author Tomasz Mon <desowin@gmail.com>
date Thu, 10 Apr 2008 21:59:02 +0200
parents a6a2e84e2b2e
children cd05a0e70545
files src/audacious/ui_fileinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_fileinfo.c	Wed Apr 09 15:50:37 2008 +0300
+++ b/src/audacious/ui_fileinfo.c	Thu Apr 10 21:59:02 2008 +0200
@@ -643,7 +643,7 @@
 
         for (i = 0; i < G_N_ELEMENTS(genre_table); i++)
             genre_list = g_list_prepend(genre_list, _(genre_table[i]));
-        genre_list = g_list_sort(genre_list, (GCompareFunc) g_ascii_strcasecmp);
+        genre_list = g_list_sort(genre_list, (GCompareFunc) g_utf8_collate);
 
         MOWGLI_ITER_FOREACH(iter, genre_list)
             gtk_combo_box_append_text(GTK_COMBO_BOX(entry_genre), iter->data);