From cd8ec3359b4b8afd5cce48bf218ecd793f8064eb Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Sun, 15 Jul 2012 19:10:43 +0200 Subject: [PATCH] GVariantType: Add (constructor) annotation for some constructors. This are mistaken by g-ir-scanner as GVariantType's methods, because they take a GVariantType* as a first parameter. https://bugzilla.gnome.org/show_bug.cgi?id=679968 --- glib/gvarianttype.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c index 5c27fe0f9..aeea1c188 100644 --- a/glib/gvarianttype.c +++ b/glib/gvarianttype.c @@ -1418,7 +1418,7 @@ g_variant_type_new_tuple (const GVariantType * const *items, } /** - * g_variant_type_new_array: + * g_variant_type_new_array: (constructor) * @element: a #GVariantType * * Constructs the type corresponding to an array of elements of the @@ -1448,7 +1448,7 @@ g_variant_type_new_array (const GVariantType *element) } /** - * g_variant_type_new_maybe: + * g_variant_type_new_maybe: (constructor) * @element: a #GVariantType * * Constructs the type corresponding to a maybe instance containing @@ -1478,7 +1478,7 @@ g_variant_type_new_maybe (const GVariantType *element) } /** - * g_variant_type_new_dict_entry: + * g_variant_type_new_dict_entry: (constructor) * @key: a basic #GVariantType * @value: a #GVariantType *