ArrayG.setClearFunc

Sets a function to clear an element of @array.

The @clear_func will be called when an element in the array data segment is removed and when the array is freed and data segment is deallocated as well. @clear_func will be passed a pointer to the element to clear, rather than the element itself.

Note that in contrast with other uses of #GDestroyNotify functions, @clear_func is expected to clear the contents of the array element it is given, but not free the element itself.

class ArrayG
void
setClearFunc

Parameters

clearFunc GDestroyNotify

a function to clear an element of @array

Meta

Since

2.32