TreeModelIF.iterNthChild

Sets iter to be the child of parent, using the given index. The first index is 0. If n is too big, or parent has no children, iter is set to an invalid iterator and FALSE is returned. parent will remain a valid node after this function has been called. As a special case, if parent is NULL, then the nth root node is set.

interface TreeModelIF
int
iterNthChild

Parameters

iter TreeIter

the GtkTreeIter to set to the nth child. out

parent TreeIter

the GtkTreeIter to get the child from, or NULL. [allow-none]

n int

the index of the desired child

Return Value

Type: int

TRUE, if parent has an nth child

Meta