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.
this |
Object containing the associations |
key |
name of the key |
data |
data to associate with that key |
destroy |
function to call when the association is destroyed |