mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
27ee5709f8
commit
408142e32e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user