[nautilus] files-view: use display name for renaming popover



commit 39f9de346642b8d29372d050e0876fc6be91aab3
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Aug 24 14:43:34 2015 +0200

    files-view: use display name for renaming popover
    
    I forgot to put display_name instead of name
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754023

 src/nautilus-files-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index a9adb3b..a72dbab 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -2076,7 +2076,7 @@ nautilus_files_view_rename_file_popover_new (NautilusFilesView *view,
                 gtk_label_set_text (GTK_LABEL (label_file_name), _("Folder name"));
         else
                 gtk_label_set_text (GTK_LABEL (label_file_name), _("File name"));
-        gtk_entry_set_text (GTK_ENTRY (widget_data->name_entry), nautilus_file_get_name (target_file));
+        gtk_entry_set_text (GTK_ENTRY (widget_data->name_entry), nautilus_file_get_display_name 
(target_file));
 
         relative_to = nautilus_files_view_compute_rename_popover_relative_to (view);
         gtk_popover_set_default_widget (GTK_POPOVER (widget_data->widget),
@@ -2088,7 +2088,7 @@ nautilus_files_view_rename_file_popover_new (NautilusFilesView *view,
         gtk_widget_grab_focus (widget_data->widget);
 
         /* Select the name part withouth the file extension */
-        eel_filename_get_rename_region (nautilus_file_get_name (target_file),
+        eel_filename_get_rename_region (nautilus_file_get_display_name (target_file),
                                         &start_offset, &end_offset);
         gtk_editable_select_region (GTK_EDITABLE (widget_data->name_entry),
                                     start_offset, end_offset);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]