From c248343c946ec1183dced338b6936228ef6f3c08 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Sun, 23 Jan 2011 15:00:39 +0300 Subject: [PATCH] When copying files, place them into clipboard in straight (and not reverse) order. This fixes an undesired behavior in a case when several large ordered files (e.g. movies or archive volumes) are copied. When they are copied in reverse order, they are pasted in that order too, and this is unconvenient to work with, if copying is interrupted or target media is out of free space. --- thunar/thunar-clipboard-manager.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunar/thunar-clipboard-manager.c b/thunar/thunar-clipboard-manager.c index fa40b99..e0955b1 100644 --- a/thunar/thunar-clipboard-manager.c +++ b/thunar/thunar-clipboard-manager.c @@ -470,7 +470,7 @@ thunar_clipboard_manager_transfer_files (ThunarClipboardManager *manager, for (lp = files, manager->files = NULL; lp != NULL; lp = lp->next) { file = g_object_ref (G_OBJECT (lp->data)); - manager->files = g_list_prepend (manager->files, file); + manager->files = g_list_append (manager->files, file); g_signal_connect (G_OBJECT (file), "destroy", G_CALLBACK (thunar_clipboard_manager_file_destroyed), manager); } -- 1.7.2.3