GObject.signal_accumulator_first_wins

function signal_accumulator_first_wins(ihint: GObject.SignalInvocationHint, return_accu: Any, handler_return: Any, dummy: void): Boolean {
    // Gjs wrapper for g_signal_accumulator_first_wins()
}
  

A predefined GObject.SignalAccumulator for signals intended to be used as a hook for application code to provide a particular value. Usually only one such value is desired and multiple handlers for the same signal don't make much sense (except for the case of the default handler defined in the class structure, in which case you will usually want the signal connection to override the class handler).

This accumulator will use the return value from the first signal handler that is run as the return value for the signal and not run any further handlers (ie: the first handler "wins").

Since 2.28

ihint

standard GObject.SignalAccumulator parameter

return_accu

standard GObject.SignalAccumulator parameter

handler_return

standard GObject.SignalAccumulator parameter

dummy

standard GObject.SignalAccumulator parameter

Returns

standard GObject.SignalAccumulator result