Package: gtk

Function gtk:string-list-splice

Lambda List

gtk:string-list-splice (model pos n &rest additions)

Arguments

model -- a gtk:string-list object
pos -- an unsigned integer for the position at which to make the change
n -- an unsigned integer for the number of strings to remove
additions -- strings to add

Details

Changes the string list by removing n strings and adding additions to it. Each additions argument can be a string, a list of strings or a nested list of strings. This function is more efficient than the gtk:string-list-append function and the gtk:string-list-remove function, because it only emits the "items-changed" signal once for the change.

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

See also

2026-04-26