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][signals.html#Memory_management_of_signal_handlers] 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

Type: -

The instance to connect to.

detailed_signal

Type: -

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

c_handler

Type: -

The GCallback to connect.

data

Type: -

Data to pass to c_handler calls.