[gtk+] Can't select file on file browser after changing sort order



commit 42abeadbb812172c8f3e3c7b7dc4662cb90cff89
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jun 16 12:41:40 2010 +0200

    Can't select file on file browser after changing sort order
    
    The row values are 1-indexed not 0-indexed, this has to be taken into
    account when producing the new_order array.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621414

 gtk/gtkfilesystemmodel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 738b061..7c9e1dc 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -739,7 +739,7 @@ gtk_file_system_model_sort (GtkFileSystemModel *model)
                   continue;
                 }
 
-              new_order[r] = node->row;
+              new_order[r] = node->row - 1;
               r++;
               node->row = r;
             }



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