connect_object


Description:

public void connect_object (string detailed_signal, Callback c_handler, void* object, ConnectFlags flags)

Connects c_handler to the signal detailed_signal on target.

Ensures that the object stays alive during the call to c_handler by temporarily adding a reference count. When the object is destroyed the signal handler will automatically be removed.

You cannot connect a signal handler after target has been set.

Parameters:

this

a SignalGroup

detailed_signal

a string of the form `signal-name` with optional `GSignalGroup::signal-detail`

c_handler

the ObjectConstructorFunc to connect

object

the Object to pass as data to c_handler calls

flags

ConnectFlags for the signal connection




2022 vala-language.org