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.

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