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.

  1. gulong connectData(void* instanc, string detailedSignal, GCallback cHandler, Object data, GClosureNotify destroyData, GConnectFlags connectFlags)
  2. gulong connectData(void* instanc, string detailedSignal, GCallback cHandler, void* data, GClosureNotify destroyData, GConnectFlags connectFlags)

Parameters

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

Meta