[nautilus/1344-be-a-little-more-helpful-with-renaming-duplicate-files: 2/4] operations-ui-manager: Rename struct field




commit 1d2a116ec3dcacb0911415c0ebfa4dfeeb284524
Author: António Fernandes <antoniof gnome org>
Date:   Sat Feb 8 12:22:13 2020 +0000

    operations-ui-manager: Rename struct field
    
    .nautilus_directory holds a reference to a NautilusFile.
    
    Rename it to .nautilus_directory_file, so that the existing name can
    be reused to store a NautilusDirectory reference in the next commit.

 src/nautilus-operations-ui-manager.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-operations-ui-manager.c b/src/nautilus-operations-ui-manager.c
index a932a2d77..790592f5a 100644
--- a/src/nautilus-operations-ui-manager.c
+++ b/src/nautilus-operations-ui-manager.c
@@ -94,7 +94,7 @@ typedef struct
 
     NautilusFile *source;
     NautilusFile *destination;
-    NautilusFile *destination_directory;
+    NautilusFile *destination_directory_file;
 
     NautilusFileConflictDialog *dialog;
 
@@ -129,7 +129,7 @@ set_copy_move_dialog_text (FileConflictDialogData *data)
     destination_mtime = nautilus_file_get_mtime (data->destination);
 
     destination_name = nautilus_file_get_display_name (data->destination);
-    destination_directory_name = nautilus_file_get_display_name (data->destination_directory);
+    destination_directory_name = nautilus_file_get_display_name (data->destination_directory_file);
 
     source_is_directory = nautilus_file_is_directory (data->source);
     destination_is_directory = nautilus_file_is_directory (data->destination);
@@ -421,13 +421,13 @@ run_file_conflict_dialog (gpointer user_data)
 
     data->source = nautilus_file_get (data->source_name);
     data->destination = nautilus_file_get (data->destination_name);
-    data->destination_directory = nautilus_file_get (data->destination_directory_name);
+    data->destination_directory_file = nautilus_file_get (data->destination_directory_name);
 
     data->dialog = nautilus_file_conflict_dialog_new (data->parent);
 
     files = g_list_prepend (files, data->source);
     files = g_list_prepend (files, data->destination);
-    files = g_list_prepend (files, data->destination_directory);
+    files = g_list_prepend (files, data->destination_directory_file);
 
     nautilus_file_list_call_when_ready (files,
                                         NAUTILUS_FILE_ATTRIBUTES_FOR_ICON | 
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT,
@@ -472,7 +472,7 @@ run_file_conflict_dialog (gpointer user_data)
 
     nautilus_file_unref (data->source);
     nautilus_file_unref (data->destination);
-    nautilus_file_unref (data->destination_directory);
+    nautilus_file_unref (data->destination_directory_file);
     g_list_free (files);
 
     return G_SOURCE_REMOVE;


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