get the next child before traversing/calling func.

2000-10-15  Chris Toshok  <toshok@helixcode.com>

	* e-tree-model.c (e_tree_model_node_traverse): get the next child
	before traversing/calling func.

svn path=/trunk/; revision=5937
This commit is contained in:
Chris Toshok
2000-10-15 23:46:23 +00:00
committed by Chris Toshok
parent 9ea0801fff
commit 40effd4a8a

View File

@ -142,12 +142,15 @@ e_tree_path_unlink (ETreePath *path)
void
e_tree_model_node_traverse (ETreeModel *model, ETreePath *path, ETreePathFunc func, gpointer data)
{
ETreePath *child;
ETreePath *child = path->first_child;
for (child = path->first_child; child; child = child->next_sibling) {
while (child) {
ETreePath *next_child = child->next_sibling;
e_tree_model_node_traverse (model, child, func, data);
if (func (model, child, data) == TRUE)
return;
child = next_child;
}
}