[gitg] files: walk tree in pre order



commit 78abff4d8c9c6d5e70ac34342afd8d306fcde0d2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Oct 18 12:49:50 2012 +0200

    files: walk tree in pre order
    
    In post order we seem to have the folders after the files
    so we can't correctly set the parent in the tree store.

 plugins/files/gitg-files-tree-store.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/files/gitg-files-tree-store.vala b/plugins/files/gitg-files-tree-store.vala
index fcc534c..e853cde 100644
--- a/plugins/files/gitg-files-tree-store.vala
+++ b/plugins/files/gitg-files-tree-store.vala
@@ -155,7 +155,7 @@ public class TreeStore : Gtk.TreeStore
 				}
 
 				return 0;
-			}, Ggit.TreeWalkMode.POST);
+			}, Ggit.TreeWalkMode.PRE);
 		} catch (Error e) { }
 	}
 }



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