[gnome-builder/wip/large-project] project-tree: mark directories as possibly having children
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/large-project] project-tree: mark directories as possibly having children
- Date: Mon, 15 Jun 2015 10:08:23 +0000 (UTC)
commit f7ddca0e27885558ba9727e52dbd05b643d351ba
Author: Christian Hergert <christian hergert me>
Date: Mon Jun 15 03:07:50 2015 -0700
project-tree: mark directories as possibly having children
src/project-tree/gb-project-tree-builder.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/project-tree/gb-project-tree-builder.c b/src/project-tree/gb-project-tree-builder.c
index c6c1430..b1853f9 100644
--- a/src/project-tree/gb-project-tree-builder.c
+++ b/src/project-tree/gb-project-tree-builder.c
@@ -177,6 +177,9 @@ build_file (GbProjectTreeBuilder *self,
NULL);
gb_tree_node_insert_sorted (node, child, compare_nodes_func, self);
+
+ if (g_file_info_get_file_type (item_file_info) == G_FILE_TYPE_DIRECTORY)
+ gb_tree_node_set_children_possible (child, TRUE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]