From 5cb7f1ebaa48b6e7bec82b7ea12d40ab6ffc75b7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Jun 2005 05:24:11 +0000 Subject: [PATCH] Use g_utf8_collate_key_for_filename(). 2005-06-08 Matthias Clasen * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use g_utf8_collate_key_for_filename(). --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkfilesystem.c | 8 ++++---- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 23b1b708c5..65ef2f4370 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-08 Matthias Clasen + + * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use + g_utf8_collate_key_for_filename(). + 2005-06-07 Kjartan Maraas * gtk/gtkfilechooserbutton.c: (update_label_and_image): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 23b1b708c5..65ef2f4370 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-06-08 Matthias Clasen + + * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use + g_utf8_collate_key_for_filename(). + 2005-06-07 Kjartan Maraas * gtk/gtkfilechooserbutton.c: (update_label_and_image): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 23b1b708c5..65ef2f4370 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-06-08 Matthias Clasen + + * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use + g_utf8_collate_key_for_filename(). + 2005-06-07 Kjartan Maraas * gtk/gtkfilechooserbutton.c: (update_label_and_image): diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c index 20347f75a7..2b2d275586 100644 --- a/gtk/gtkfilesystem.c +++ b/gtk/gtkfilesystem.c @@ -119,9 +119,9 @@ gtk_file_info_get_display_name (const GtkFileInfo *info) * gtk_file_info_get_display_key: * @info: a #GtkFileInfo * - * Returns results of g_utf8_collate_key() on the display name - * for @info. This is useful when sorting a bunch of #GtkFileInfo - * structures since the collate key will be only computed once. + * Returns for the collation key for the display name for @info. + * This is useful when sorting a bunch of #GtkFileInfo structures + * since the collate key will be only computed once. * * Return value: The collate key for the display name, or %NULL * if the display name hasn't been set. @@ -135,7 +135,7 @@ gtk_file_info_get_display_key (const GtkFileInfo *info) { /* Since info->display_key is only a cache, we cast off the const */ - ((GtkFileInfo *)info)->display_key = g_utf8_collate_key (info->display_name, -1); + ((GtkFileInfo *)info)->display_key = g_utf8_collate_key_for_filename (info->display_name, -1); } return info->display_key;