Function Macro

GObjectsignal_connect

Declaration [src]

#define g_signal_connect (
  instance,
  detailed_signal,
  c_handler,
  data
)

Description [src]

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.

Parameters

instance -
 

The instance to connect to.

detailed_signal -
 

A string of the form “signal-name::detail”.

c_handler -
 

The GCallback to connect.

data -
 

Data to pass to c_handler calls.