Package: gtk

Function gtk:tree-store-insert

Lambda List

gtk:tree-store-insert (store parent position)

Arguments

store -- a gtk:tree-store object
parent -- a valid gtk:tree-iter iterator, or nil
position -- an integer with the position to insert the new row

Return Value

The gtk:tree-iter iterator to the new row.

Details

Creates a new row at position. If parent is non-nil, then the row will be made a child of parent. Otherwise, the row will be created at the toplevel. If position is larger than the number of rows at that level, then the new row will be inserted to the end of the list. The returned iterator point to this new row. The row will be empty after this function is called. To fill in values, you need to call the gtk:tree-store-set or gtk:tree-store-set-value functions.

Warning

The gtk:tree-store implementation is deprecated since 4.10. Use the gtk:tree-list-model object instead.
 

See also

#2024-5-16