StringList.splice

void splice(uint position, uint nRemovals, string[] additions = null)

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

This function is more efficient than [gtk.string_list.StringList.append] and [gtk.string_list.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: position + n_removals must be less than or equal to the length of the list at the time this function is called).

Parameters

positionthe position at which to make the change
nRemovalsthe number of strings to remove
additionsThe strings to add