Function

GObject-2.0GObjectsignal_handler_find

  • Finds the first signal handler that matches certain selection criteria. The criteria are passed as properties of a match object. The match object has to be non-empty for successful matches. If no handler was found, a falsy value is returned.

    Parameters

    • instance: GObject.Object

      the instance owning the signal handler to be found.

    • match: { detail: string; func: (...args: any[]) => any; signalId: string }

      a properties object indicating whether to match by signal ID, detail, or callback function.

      • detail: string

        signal detail the handler has to be connected to.

      • func: (...args: any[]) => any

        the callback function the handler will invoke.

      • signalId: string

        signal the handler has to be connected to.

    Returns number | bigint | object

    A valid non-0 signal handler ID for a successful match.

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns number