Function Macro

GObjectsignal_connect

Declaration

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

Description

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

The handler will be called synchronously, before the default handler of the signal. g_signal_emit() will not return control until all handlers are called.

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

This function is not directly available to language bindings

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.