API 版本: 2.0
库版本: 2.83.2
由 gi-docgen 2024.1 生成
自: 2.44
void g_list_store_insert ( GListStore* store, guint position, GObject* item )
将 item 插入到 store 的 position 位置。 item 必须是 GListStore:item-type 类型或由此派生。 position 必须小于列表的长度,或者等于它以添加。
item
store
position
GListStore:item-type
此函数将对 item 取 ref。
使用 g_list_store_splice() 以高效方式同时插入多个项。
g_list_store_splice()
自 2.44 以来可用
类型: guint
guint
插入新项的位置。
类型: GObject
GObject
新项。