From 3bd703e9c4a4de0ea3faf2073ffaffcb182c5b5d Mon Sep 17 00:00:00 2001 From: David Shea Date: Wed, 8 Apr 2015 13:14:22 -0400 Subject: [PATCH] Add introspection annotations to GListStore GListStore requires that item-type be derived from GObject, so specify that the type of the item parameters is GObject so the functions can be used via gobject-introspection. Add a scope parameter for the callback used during insert_sorted. --- gio/gliststore.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gio/gliststore.c b/gio/gliststore.c index fce4dc220..5e5f3e3a6 100644 --- a/gio/gliststore.c +++ b/gio/gliststore.c @@ -245,7 +245,7 @@ g_list_store_new (GType item_type) * g_list_store_insert: * @store: a #GListStore * @position: the position at which to insert the new item - * @item: the new item + * @item: (type GObject): the new item * * Inserts @item into @store at @position. @item must be of type * #GListStore:item-type or derived from it. @position must be smaller @@ -278,8 +278,8 @@ g_list_store_insert (GListStore *store, /** * g_list_store_insert_sorted: * @store: a #GListStore - * @item: the new item - * @compare_func: pairwise comparison function for sorting + * @item: (type GObject): the new item + * @compare_func: (scope call): pairwise comparison function for sorting * @user_data: (closure): user data for @compare_func * * Inserts @item into @store at a position to be determined by the @@ -319,7 +319,7 @@ g_list_store_insert_sorted (GListStore *store, /** * g_list_store_append: * @store: a #GListStore - * @item: the new item + * @item: (type GObject): the new item * * Appends @item to @store. @item must be of type #GListStore:item-type. * @@ -400,7 +400,7 @@ g_list_store_remove_all (GListStore *store) * @store: a #GListStore * @position: the position at which to make the change * @n_removals: the number of items to remove - * @additions: (array length=n_additions): the items to add + * @additions: (array length=n_additions) (element-type GObject): the items to add * @n_additions: the number of items to add * * Changes @store by removing @n_removals items and adding @n_additions