WeakRef.init

Initialise a non-statically-allocated gobject.WeakRef

This function also calls WeakRef.set with object on the freshly-initialised weak reference.

This function should always be matched with a call to WeakRef.clear. It is not necessary to use this function for a gobject.WeakRef in static storage because it will already be properly initialised. Just use WeakRef.set directly.

class WeakRef
void
init

Parameters

object ObjectG

a GObject or NULL

Meta

Since

2.32