signalConnectClosureById

fngulong signalConnectClosureById(gobject.object.ObjectWrap instance, uint signalId, glib.types.Quark detail, gobject.closure.Closure closure, bool after)

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

instancethe instance to connect to.
signalIdthe id of the signal.
detailthe detail.
closurethe closure to connect.
afterwhether the handler should be called before or after the default handler of the signal.

Returns

the handler ID (always greater than 0)