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).
This commit is contained in:
Niels De Graef 2020-12-25 15:02:44 +01:00
parent 73252da4f4
commit bba70f5869
1 changed files with 3 additions and 3 deletions

View File

@ -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.
**/