ListStore.splice

Changes store by removing n_removals items and adding n_additions items to it. additions must contain n_additions items of type item-type. NULL is not permitted.

This function is more efficient than ListStore.insert and ListStore.remove, because it only emits 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).

class ListStore
void
splice

Parameters

position uint

the position at which to make the change

nRemovals uint

the number of items to remove

additions ObjectG[]

the items to add

Meta

Since

2.44