Signals.connectData

Connects a GCallback function to a signal for a particular object. Similar to g_signal_connect(), but allows to provide a GClosureNotify for the data which will be called when the signal handler is disconnected and no longer used. Specify connect_flags if you need ..._after()` or ..._swapped()` variants of this function.

Parameters

instance_ ObjectG

the instance to connect to.

detailedSignal string

a string of the form "signal-name::detail".

cHandler GCallback

the GCallback to connect.

data void*

data to pass to c_handler calls.

destroyData GClosureNotify

a GClosureNotify for data.

connectFlags GConnectFlags

a combination of GConnectFlags

Return Value

Type: gulong

the handler ID (always greater than 0 for successful connections)