[gitg] Use GgitFileMode instead of POSIX



commit 9ac488a5ddb4f1a44bf8e2867722815512b7bd69
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Oct 17 14:35:16 2012 +0200

    Use GgitFileMode instead of POSIX

 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 d2b67e5..fd81f9c 100644
--- a/plugins/files/gitg-files-tree-store.vala
+++ b/plugins/files/gitg-files-tree-store.vala
@@ -121,7 +121,7 @@ public class TreeStore : Gtk.TreeStore
 		{
 			d_tree.walk((root, entry) => {
 				var attr = entry.get_file_mode();
-				var isdir = Posix.S_ISDIR(attr);
+				var isdir = attr == Ggit.FileMode.TREE;
 
 				Gtk.TreeIter? parent = null;
 



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