ObjectG.setDataFull

Like g_object_set_data() except it adds notification for when the association is destroyed, either by setting it to a different value or when the object is destroyed.

Note that the @destroy callback is not called if @data is %NULL.

class ObjectG
void
setDataFull
(
string key
,
void* data
,
GDestroyNotify destroy
)

Parameters

key string

name of the key

data void*

data to associate with that key

destroy GDestroyNotify

function to call when the association is destroyed

Meta