mirror of https://github.com/GNOME/gimp.git
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:
parent
73252da4f4
commit
bba70f5869
|
@ -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.
|
||||
**/
|
||||
|
|
Loading…
Reference in New Issue