ListStore.splice
void splice(uint position, uint nRemovals, gobject.object.ObjectWrap[] additions)Changes store by removing n_removals items and adding n_additions items to it. additions must contain n_additions items of type #GListStore:item-type. null is not permitted.
This function is more efficient than [gio.list_store.ListStore.insert] and [gio.list_store.ListStore.remove], because it only emits #GListModel::items-changed once for the change.
This function takes a ref on each item 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
position | the position at which to make the change |
nRemovals | the number of items to remove |
additions | the items to add |