signalConnectClosure

fun signalConnectClosure(instance: Object, detailedSignal: String, closure: Closure, after: Boolean): <Error class: unknown class>

Connects a closure to a signal for a particular object.

If @closure is a floating reference (see g_closure_sink()), this function takes ownership of @closure.

This function cannot fail. If the given signal doesn’t exist, a critical warning is emitted.

Return

the handler ID (always greater than 0)

Parameters

instance

the instance to connect to.

detailedSignal

a string of the form "signal-name::detail".

closure

the closure to connect.

after

whether the handler should be called before or after the default handler of the signal.