WeakNotify


Description:

[ CCode ( instance_pos = 0 ) ]
public delegate void WeakNotify (Object object)

A WeakNotify function can be added to an object as a callback that gets triggered when the object is finalized.

Since the object is already being disposed when the WeakNotify is called, there's not much you could do with the object, apart from e.g. using its address as hash-index or the like.

Parameters:

data

data that was provided when the weak reference was established

where_the_object_was

the object being disposed


Namespace: GLib
Package: gobject-2.0