[anjuta] am-project: Keep sibling when reloading a node



commit d77a2992b0a2bb35295d897c49b52ebf6548579d
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Fri Mar 16 22:17:46 2012 +0100

    am-project: Keep sibling when reloading a node

 plugins/am-project/am-project.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 52d5bb0..3231611 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -1565,7 +1565,7 @@ amp_project_update_node (AnjutaProjectNode *key, AnjutaProjectNode *value, GHash
 
 			if (new_node->parent == NULL)
 			{
-				/* This is the root node, update only the children */
+				/* This is the top loaded node, update only the children */
 				node->children = new_node->children;
 			}
 			else
@@ -2149,6 +2149,8 @@ amp_load_complete (PmJob *job)
 	}*/
 	map = amp_project_map_node (job->node, job->proxy);
 	g_object_ref (job->proxy);
+
+	job->proxy->parent = NULL;	// Mark loaded top node
 	g_hash_table_foreach (map, (GHFunc)amp_project_update_node, map);
 	//anjuta_project_node_check (job->node);
 	g_hash_table_destroy (map);



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