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.
name of the key
data to associate with that key
function to call when the association is destroyed
See Implementation
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.