Function
GimpObjectArraynew
Declaration [src]
GimpObjectArray*
gimp_object_array_new (
GType object_type,
GObject** data,
gsize length,
gboolean static_data
)
Description [src]
Creates a new GimpObjectArray containing object pointers, of size length.
If static_data is TRUE, data is used as-is.
If static_data is FALSE, the object and array will be re-allocated,
hence you are expected to free your input data after.
Parameters
object_type-
Type:
GTypeThe array will hold objects of this type.
data-
Type: An array of
GObject*An array of objects.
The length of the array is specified in the lengthargument.The data is owned by the caller of the function. length-
Type:
gsizeThe length of
data. static_data-
Type:
gbooleanWhether the objects in
dataare static objects and don’t need to be copied.
Return value
Type: GimpObjectArray
A new GimpObjectArray.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |