GObject.signal_stop_emission
function signal_stop_emission(instance: GObject.Object, signal_id: Number(guint), detail: GLib.Quark): void { // Gjs wrapper for g_signal_stop_emission() }
Stops a signal's current emission.
This will prevent the default method from running, if the signal was GObject.SignalFlags.run_last and you connected normally (i.e. without the "after" flag).
Prints a warning if used on a signal which isn't being emitted.
- instance
the object whose signal handlers you wish to stop.
- signal_id
the signal identifier, as returned by GObject.signal_lookup.
- detail
the detail which the signal was emitted with.