Signals.connect

Connects a GCallback function to a signal for a particular object.

The handler will be called before the default handler of the signal.

See [memory management of signal handlers][signal-memory-management] for details on how to handle the return value and memory management of @data.

struct Signals
static
gulong
connect

Parameters

detailedSignal string

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

cHandler GCallback

the GCallback to connect.

data void*

data to pass to cHandler calls.

Return Value

Type: gulong

the handler ID, of type gulong (always greater than 0 for successful connections)

Meta