gdk: Add a missing annotation
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Aug 2021 12:57:27 +0000 (08:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Aug 2021 12:57:27 +0000 (08:57 -0400)
Mark an array as zero-terminated.

Fixes: #4097
gdk/gdkclipboard.c

index 5bb58175df0ee09aecdb9fe31d51ba025c63eab4..bbd1a1fde5c6faae6a8d8044de62f55a0e9ba6de 100644 (file)
@@ -635,7 +635,7 @@ gdk_clipboard_read_internal (GdkClipboard        *clipboard,
 /**
  * gdk_clipboard_read_async:
  * @clipboard: a `GdkClipboard`
- * @mime_types: a %NULL-terminated array of mime types to choose from
+ * @mime_types: (array zero-terminated=1): a %NULL-terminated array of mime types to choose from
  * @io_priority: the I/O priority of the request
  * @cancellable: (nullable): optional `GCancellable` object
  * @callback: (scope async): callback to call when the request is satisfied