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

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


Updating branch refs/heads/master
         to a78ad6084cfcb707e0a19b862e8a2f1d7bd827c1 (commit)
       from c7c9e0c47b767cbcdf487618f3d08c063d7c10e4 (commit)

commit a78ad6084cfcb707e0a19b862e8a2f1d7bd827c1
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