splice

open fun splice(position: <Error class: unknown class>, nRemovals: <Error class: unknown class>, additions: List<String>? = null)

Changes @self by removing @n_removals strings and adding @additions to it.

This function is more efficient than method@Gtk.StringList.append and method@Gtk.StringList.remove, because it only emits the ::items-changed signal once for the change.

This function copies the strings in @additions.

The parameters @position and @n_removals must be correct (ie:

Parameters

position

the position at which to make the change

nRemovals

the number of strings to remove

additions

The strings to add