Package: gtk

Function gtk:string-list-splice

Lambda List

gtk:string-list-splice (model pos n 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 -- a list of strings to add

Details

Changes the string list by removing n strings and adding additions to it. 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

2025-3-29