[anjuta/symbol-db-model] symbol-db: Fixed collapse and expand of nodes
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/symbol-db-model] symbol-db: Fixed collapse and expand of nodes
- Date: Sun, 14 Mar 2010 13:55:21 +0000 (UTC)
commit b4054221e310bcc405da5f1c4e4551bbd5ef8532
Author: Naba Kumar <naba gnome org>
Date: Sun Mar 14 11:36:04 2010 +0200
symbol-db: Fixed collapse and expand of nodes
plugins/symbol-db/symbol-db-model.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index 7074b24..21c2b15 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -171,7 +171,7 @@ symbol_db_model_node_cleanse (SymbolDBModelNode *node)
page = next;
}
node->pages = NULL;
-
+ node->children_ensured = FALSE;
g_free (node->children);
node->children = NULL;
@@ -603,6 +603,9 @@ symbol_db_model_iter_children (GtkTreeModel *tree_model,
node = symbol_db_model_node_get_child (parent_node, offset);
g_return_val_if_fail (node != NULL, FALSE);
}
+ if (!node->children_ensured)
+ symbol_db_model_node_ensure_children (SYMBOL_DB_MODEL (tree_model),
+ node, FALSE, FALSE);
g_return_val_if_fail (node->children != NULL, FALSE);
g_return_val_if_fail (node->n_children > 0, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]