From 02e0e8f5be094f1b34d430a5b063ae7300ac795e Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 16 Jan 2019 21:54:30 +0100 Subject: [PATCH] as-pool: Fix g-i for get_components_*() while GPtrArray owns its elements See 8213577d1ee72385a27c79a546564a52bcfba93a --- src/as-pool.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/as-pool.c b/src/as-pool.c index 5e685d2e..7d958cf9 100644 --- a/src/as-pool.c +++ b/src/as-pool.c @@ -1198,7 +1198,7 @@ as_pool_get_components (AsPool *pool) * This function may contain multiple results if we have * data describing this component from multiple scopes/origin types. * - * Returns: (transfer container) (element-type AsComponent): An #AsComponent + * Returns: (transfer full) (element-type AsComponent): An #AsComponent */ GPtrArray* as_pool_get_components_by_id (AsPool *pool, const gchar *cid) @@ -1231,7 +1231,7 @@ as_pool_get_components_by_id (AsPool *pool, const gchar *cid) * * Find components in the AppStream data pool which provide a certain item. * - * Returns: (transfer container) (element-type AsComponent): an array of #AsComponent objects which have been found. + * Returns: (transfer full) (element-type AsComponent): an array of #AsComponent objects which have been found. */ GPtrArray* as_pool_get_components_by_provided_item (AsPool *pool, @@ -1277,7 +1277,7 @@ as_pool_get_components_by_provided_item (AsPool *pool, * * Return a list of all components in the pool which are of a certain kind. * - * Returns: (transfer container) (element-type AsComponent): an array of #AsComponent objects which have been found. + * Returns: (transfer full) (element-type AsComponent): an array of #AsComponent objects which have been found. */ GPtrArray* as_pool_get_components_by_kind (AsPool *pool, AsComponentKind kind) @@ -1309,7 +1309,7 @@ as_pool_get_components_by_kind (AsPool *pool, AsComponentKind kind) * * Return a list of components which are in one of the categories. * - * Returns: (transfer container) (element-type AsComponent): an array of #AsComponent objects which have been found. + * Returns: (transfer full) (element-type AsComponent): an array of #AsComponent objects which have been found. */ GPtrArray* as_pool_get_components_by_categories (AsPool *pool, gchar **categories) @@ -1351,7 +1351,7 @@ as_pool_get_components_by_categories (AsPool *pool, gchar **categories) * Find components in the AppStream data pool which provide a specific launchable. * See #AsLaunchable for details on launchables, or refer to the AppStream specification. * - * Returns: (transfer container) (element-type AsComponent): an array of #AsComponent objects which have been found. + * Returns: (transfer full) (element-type AsComponent): an array of #AsComponent objects which have been found. * * Since: 0.11.4 */