CClosure.this

A variant of this() which uses object as userData and calls ObjectG.watchClosure() on object and the created closure. This function is useful when you have a callback closely associated with a gobject.ObjectG, and want the callback to no longer run after the object is is freed.

Parameters

callbackFunc GCallback

the function to invoke

object ObjectG

a gobject.ObjectG.ObjectG to pass to callbackFunc

swap bool

if true invoce with usrData as the first parameter

Throws

ConstructionException GTK+ fails to create the object.

Meta