[gimp] gimpparamspecs: Add annotations about array length



commit bba70f586910d596f1fe6fbd529d4bb6eb55f22f
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Fri Dec 25 15:02:44 2020 +0100

    gimpparamspecs: Add annotations about array length
    
    Although most GObject bindings can't really deal with struct fields,
    it's still a nice thing to be able to see that these are actually arrays
    (it also becomes visible in the Vala VAPI file).

 libgimpbase/gimpparamspecs.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgimpbase/gimpparamspecs.h b/libgimpbase/gimpparamspecs.h
index 12ae18a5e1..6a0ab225d3 100644
--- a/libgimpbase/gimpparamspecs.h
+++ b/libgimpbase/gimpparamspecs.h
@@ -314,8 +314,8 @@ void            gimp_value_take_float_array       (GValue        *value,
 
 /**
  * GimpStringArray:
- * @data:        pointer to the array's data.
- * @length:      length of @data, in number of strings.
+ * @data: (array length=length): pointer to the array's data.
+ * @length: length of @data, in number of strings.
  * @static_data: whether @data points to statically allocated memory.
  **/
 typedef struct _GimpStringArray GimpStringArray;
@@ -426,7 +426,7 @@ void            gimp_value_take_rgb_array       (GValue        *value,
 /**
  * GimpObjectArray:
  * @object_type: #GType of the contained objects.
- * @data:        pointer to the array's data.
+ * @data: (array length=length): pointer to the array's data.
  * @length:      length of @data, in number of objects.
  * @static_data: whether @data points to statically allocated memory.
  **/


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