[gtk/wip/ricotz/annotations] Fix annotation for GdkContentFormats.get_gtypes()



commit 4af0531e8c28b0651d409b3e2246ebf0f47dafd4
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Mar 9 17:34:00 2020 +0100

    Fix annotation for GdkContentFormats.get_gtypes()

 gdk/gdkcontentformats.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkcontentformats.c b/gdk/gdkcontentformats.c
index e83b1b783e..7a616fc539 100644
--- a/gdk/gdkcontentformats.c
+++ b/gdk/gdkcontentformats.c
@@ -454,15 +454,16 @@ gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
 /**
  * gdk_content_formats_get_gtypes:
  * @formats: a #GdkContentFormats
- * @n_gtypes: (out) (allow-none): optional pointer to take the
+ * @n_gtypes: (out) (optional): optional pointer to take the
  *     number of #GTypes contained in the return value
  *
  * Gets the #GTypes included in @formats. Note that @formats may not
  * contain any #GTypes, in particular when they are empty. In that
  * case %NULL will be returned. 
  *
- * Returns: (transfer none) (nullable): %G_TYPE_INVALID-terminated array of 
- *     types included in @formats or %NULL if none.
+ * Returns: (transfer none) (nullable) (array length=n_gtypes):
+ *      %G_TYPE_INVALID-terminated array of types included in @formats or
+ *      %NULL if none.
  **/
 const GType *
 gdk_content_formats_get_gtypes (const GdkContentFormats *formats,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]