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:

committed by
Matthias Clasen

parent
471b638bd3
commit
5cb7f1ebaa
@ -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>
|
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
||||||
|
@ -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>
|
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
||||||
|
@ -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>
|
2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
* gtk/gtkfilechooserbutton.c: (update_label_and_image):
|
||||||
|
@ -119,9 +119,9 @@ gtk_file_info_get_display_name (const GtkFileInfo *info)
|
|||||||
* gtk_file_info_get_display_key:
|
* gtk_file_info_get_display_key:
|
||||||
* @info: a #GtkFileInfo
|
* @info: a #GtkFileInfo
|
||||||
*
|
*
|
||||||
* Returns results of g_utf8_collate_key() on the display name
|
* Returns for the collation key for the display name for @info.
|
||||||
* for @info. This is useful when sorting a bunch of #GtkFileInfo
|
* This is useful when sorting a bunch of #GtkFileInfo structures
|
||||||
* structures since the collate key will be only computed once.
|
* since the collate key will be only computed once.
|
||||||
*
|
*
|
||||||
* Return value: The collate key for the display name, or %NULL
|
* Return value: The collate key for the display name, or %NULL
|
||||||
* if the display name hasn't been set.
|
* 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
|
/* 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;
|
return info->display_key;
|
||||||
|
Reference in New Issue
Block a user