Function

GObjectsignal_connect_closure

Declaration [src]

gulong
g_signal_connect_closure (
  GObject* instance,
  const gchar* detailed_signal,
  GClosure* closure,
  gboolean after
)

Description [src]

Connects a closure to a signal for a particular object.

Parameters

instance GObject
 

The instance to connect to.

 The data is owned by the caller of the function.
detailed_signal const gchar*
 

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

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
closure GClosure
 

The closure to connect.

 The data is owned by the caller of the function.
after gboolean
 

Whether the handler should be called before or after the default handler of the signal.

Return value

Returns: gulong
 

The handler ID (always greater than 0 for successful connections)