ListStore.insert

void insert(uint position, gobject.object.ObjectWrap item)

Inserts item into store at position. item must be of type #GListStore:item-type or derived from it. position must be smaller than the length of the list, or equal to it to append.

This function takes a ref on item.

Use [gio.list_store.ListStore.splice] to insert multiple items at the same time efficiently.

Parameters

positionthe position at which to insert the new item
itemthe new item