[Xfce4-commits] <thunar:xfce-4.8> Paste files in the correct order (bug #6504).

Jannis Pohlmann noreply at xfce.org
Sun Jan 23 14:08:02 CET 2011


Updating branch refs/heads/xfce-4.8
         to 3f57e2b554f0d7ff0122d5e12968be1768b3f950 (commit)
       from fa117386cba6015bd44976f4ed5a7b35b1e45e5e (commit)

commit 3f57e2b554f0d7ff0122d5e12968be1768b3f950
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sun Jan 23 14:05:31 2011 +0100

    Paste files in the correct order (bug #6504).

 thunar/thunar-clipboard-manager.c |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/thunar/thunar-clipboard-manager.c b/thunar/thunar-clipboard-manager.c
index fa40b99..f5dceca 100644
--- a/thunar/thunar-clipboard-manager.c
+++ b/thunar/thunar-clipboard-manager.c
@@ -1,21 +1,22 @@
-/* $Id$ */
+/* vi:set et ai sw=2 sts=2 ts=2: */
 /*-
  * Copyright (c) 2005-2006 Benedikt Meurer <benny at xfce.org>
- * Copyright (c) 2009 Jannis Pohlmann <jannis at xfce.org>
+ * Copyright (c) 2009-2011 Jannis Pohlmann <jannis at xfce.org>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or 
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of 
+ * the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
+ * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA  02111-1307  USA
+ * You should have received a copy of the GNU General Public 
+ * License along with this program; if not, write to the Free 
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -467,7 +468,7 @@ thunar_clipboard_manager_transfer_files (ThunarClipboardManager *manager,
   manager->files_cutted = !copy;
 
   /* setup the new file list */
-  for (lp = files, manager->files = NULL; lp != NULL; lp = lp->next)
+  for (lp = g_list_last (files), manager->files = NULL; lp != NULL; lp = lp->prev)
     {
       file = g_object_ref (G_OBJECT (lp->data));
       manager->files = g_list_prepend (manager->files, file);



More information about the Xfce4-commits mailing list