connect_closure
Description:
public static ulong connect_closure (void* instance, string detailed_signal, Closure closure, bool after)
Connects a closure to a signal for a particular object.
If closure is a floating reference (see sink), this function
takes ownership of closure.
This function cannot fail. If the given signal name doesn’t exist, a critical warning is emitted. No validation is performed on the
‘detail’ string when specified in detailed_signal, other than a non-empty check.
Refer to the [signals documentation](signals.html) for more details.
Parameters:
| instance |
the instance to connect to. |
| detailed_signal |
a string of the form "signal-name: |
| closure |
the closure to connect. |
| after |
whether the handler should be called before or after the default handler of the signal. |
Returns:
|
the handler ID (always greater than 0) |