Function

GObject-2.0GObjectclear_signal_handlerSince 2.62

  • Disconnects a handler from instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to. The handler_id_ptr is then set to zero, which is never a valid handler ID value (see g_signal_connect()).

    If the handler ID is 0 then this function does nothing.

    There is also a macro version of this function so that the code will be inlined.

    Parameters

    • handler_id_ptr: number

      A pointer to a handler ID (of type gulong) of the handler to be disconnected.

    • instance: GObject.Object

      The instance to remove the signal handler from. This pointer may be null or invalid, if the handler ID is zero.

    Returns void

    2.62