[gtk/bilelmoussaoui/gdk-content-formats-annotations: 1/2] gdk: add length annotation to gdk_content_formats_get_mime_types
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/bilelmoussaoui/gdk-content-formats-annotations: 1/2] gdk: add length annotation to gdk_content_formats_get_mime_types
- Date: Fri, 30 Apr 2021 13:41:31 +0000 (UTC)
commit b3509e4dec38e8eb1e8ae9d7806e6066adb8da64
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Fri Apr 30 11:42:02 2021 +0000
gdk: add length annotation to gdk_content_formats_get_mime_types
gdk/gdkcontentformats.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcontentformats.c b/gdk/gdkcontentformats.c
index d8e590e14f..1f059f109f 100644
--- a/gdk/gdkcontentformats.c
+++ b/gdk/gdkcontentformats.c
@@ -480,7 +480,7 @@ gdk_content_formats_get_gtypes (const GdkContentFormats *formats,
/**
* gdk_content_formats_get_mime_types:
* @formats: a `GdkContentFormats`
- * @n_mime_types: (out) (allow-none): optional pointer to take the
+ * @n_mime_types: (out) (optional): optional pointer to take the
* number of mime types contained in the return value
*
* Gets the mime types included in @formats.
@@ -488,7 +488,7 @@ gdk_content_formats_get_gtypes (const GdkContentFormats *formats,
* Note that @formats may not contain any mime types, in particular
* when they are empty. In that case %NULL will be returned.
*
- * Returns: (transfer none) (nullable): %NULL-terminated array of
+ * Returns: (transfer none) (nullable) (array length=n_mime_types zero-terminated=1): %NULL-terminated array
of
* interned strings of mime types included in @formats or %NULL
* if none.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]