GObject.signal_connect_closure_by_id
function signal_connect_closure_by_id(instance: GObject.Object, signal_id: Number(guint), detail: GLib.Quark, closure: Function, after: Boolean): Number(gulong) { // Gjs wrapper for g_signal_connect_closure_by_id() }
Connects a closure to a signal for a particular object.
- instance
the instance to connect to.
- signal_id
the id of the signal.
- detail
the detail.
- 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 for successful connections)