Use g_utf8_collate_key_for_filename().

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
	g_utf8_collate_key_for_filename().
This commit is contained in:
Matthias Clasen 2005-06-08 05:24:11 +00:00 committed by Matthias Clasen
parent 471b638bd3
commit 5cb7f1ebaa
4 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
g_utf8_collate_key_for_filename().
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkfilechooserbutton.c: (update_label_and_image):

View File

@ -1,3 +1,8 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
g_utf8_collate_key_for_filename().
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkfilechooserbutton.c: (update_label_and_image):

View File

@ -1,3 +1,8 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
g_utf8_collate_key_for_filename().
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkfilechooserbutton.c: (update_label_and_image):

View File

@ -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;