[gtk/matthiasc/for-master] gdk: Add a missing annotation




commit d8ab5c3c45a9b418940326b1551a5a0af3c88b50
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 20 08:57:27 2021 -0400

    gdk: Add a missing annotation
    
    Mark an array as zero-terminated.
    
    Fixes: #4097

 gdk/gdkclipboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkclipboard.c b/gdk/gdkclipboard.c
index 5bb58175df..bbd1a1fde5 100644
--- a/gdk/gdkclipboard.c
+++ b/gdk/gdkclipboard.c
@@ -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


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