signalConnectClosureById

Connects a closure to a signal for a particular object.

If closure is a floating reference (see gobject.closure.Closure.sink), this function takes ownership of closure.

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

Parameters

instance gobject.object.ObjectG

the instance to connect to.

signalId uint

the id of the signal.

detail glib.types.Quark

the detail.

closure gobject.closure.Closure

the closure to connect.

after bool

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

Return Value

Type: gulong

the handler ID (always greater than 0)