Use g_filename_display_basename to calculate display name.

2004-12-15  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info):
	Use g_filename_display_basename to calculate display name.
This commit is contained in:
Alexander Larsson 2004-12-15 16:57:46 +00:00 committed by Alexander Larsson
parent 27ee5709f8
commit 408142e32e
5 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info):
Use g_filename_display_basename to calculate display name.
2004-12-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1,3 +1,8 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info):
Use g_filename_display_basename to calculate display name.
2004-12-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1,3 +1,8 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info):
Use g_filename_display_basename to calculate display name.
2004-12-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1,3 +1,8 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info):
Use g_filename_display_basename to calculate display name.
2004-12-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1743,9 +1743,7 @@ gtk_file_folder_unix_get_info (GtkFileFolder *folder,
if (types & GTK_FILE_INFO_DISPLAY_NAME)
{
gchar *display_name = g_filename_to_utf8 (basename, -1, NULL, NULL, NULL);
if (!display_name)
display_name = g_strescape (basename, NULL);
gchar *display_name = g_filename_display_basename (filename);
gtk_file_info_set_display_name (info, display_name);