newObject

fun newObject(sizeofClosure: <Error class: unknown class>, object: Object): Closure

A variant of g_closure_new_simple() which stores @object in the

Return

a newly allocated #GClosure

Parameters

sizeofClosure

the size of the structure to allocate, must be at least sizeof (GClosure)

object

a #GObject pointer to store in the @data field of the newly allocated #GClosure