ListStore.splice

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 g_list_store_insert() and g_list_store_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).

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