Package: gtk

Function gtk:tree-model-iter-nth-child

Lambda List

gtk:tree-model-iter-nth-child (model parent index)

Arguments

model -- a gtk:tree-model object
parent -- a gtk:tree-iter iterator to get the child from, or nil
index -- an integer with the index of the desired child

Return Value

The gtk:tree-iter iterator to the nth child.

Details

Returns the iterator to the child of parent, using the given index. The first index is 0. If index is too big, or parent has no children, nil is returned. The parent iterator will remain a valid node after this function has been called. As a special case, if parent is nil, then the nth root node is returned.

Warning

The gtk:tree-model implementation is deprecated since 4.10. Please do not use it in newly written code.
 

See also

#2024-5-1