[Xfce4-commits] <thunar:master> Prepend and later reverse for collecting selection.

Nick Schermer noreply at xfce.org
Sat Mar 16 19:06:01 CET 2013


Updating branch refs/heads/master
         to d5b6768a104786b44542522768d6263cff07a886 (commit)
       from afbfda8fbb80cb8731e2bc59c98d3f923a3b173c (commit)

commit d5b6768a104786b44542522768d6263cff07a886
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jan 20 12:04:58 2013 +0100

    Prepend and later reverse for collecting selection.

 thunar/thunar-standard-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 0dc3a68..ad4af3a 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1996,8 +1996,9 @@ thunar_standard_view_merge_custom_actions (ThunarStandardView *standard_view,
             {
               gtk_tree_model_get_iter (GTK_TREE_MODEL (standard_view->model), &iter, lp->data);
               file = thunar_list_model_get_file (standard_view->model, &iter);
-              files = g_list_append (files, file);
+              files = g_list_prepend (files, file);
             }
+          files = g_list_reverse (files);
         }
       else
         {


More information about the Xfce4-commits mailing list