Signals.connectObject

This is similar to g_signal_connect_data(), but uses a closure which ensures that the gobject stays alive during the call to c_handler by temporarily adding a reference count to gobject. When the gobject is destroyed the signal handler will be automatically

class Signals
static
connectObject

Parameters

detailedSignal string

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

cHandler GCallback

the GCallback to connect.

gobject void*

the object to pass as data to c_handler.

connectFlags GConnectFlags

a combination of GConnectFlags.

Return Value

Type: gulong

the handler id.

Meta