Package: gio

Function gio:list-store-splice

Lambda List

gio:list-store-splice (store pos n &rest additions)

Arguments

store -- a g:list-store object
pos -- an unsigned integer with the position at which to make the change
n -- an unsigned integer with the number of items to remove
additions -- g:object instances to add

Details

Changes the list store by removing n items and adding additions to it. The additions argument must contain items of the item-type type. This function is more efficient than the g:list-store-insert and g:list-store-remove functions, because it only emits the "items-changed" signal once for the change.

The pos and n arguments must be correct, that is, pos + n must be less than or equal to the length of the list store at the time this function is called.
 

See also

2024-3-31