Object Hierarchy:

GLib.SignalGroup GLib.SignalGroup GLib.SignalGroup GLib.Object GLib.Object GLib.Object->GLib.SignalGroup


[ CCode ( type_id = "G_TYPE_SIGNAL_GROUP" ) ]
[ Version ( since = "2.72" ) ]
public class SignalGroup : Object

`GSignalGroup` manages a collection of signals on a `GObject`.

`GSignalGroup` simplifies the process of connecting many signals to a `GObject` as a group. As such there is no API to disconnect a signal from the group.

In particular, this allows you to:

  • Change the target instance, which automatically causes disconnection of the signals from the old instance and connecting to the new instance.
  • Block and unblock signals as a group
  • Ensuring that blocked state transfers across target instances.

One place you might want to use such a structure is with `GtkTextView` and `GtkTextBuffer`. Often times, you'll need to connect to many signals on `GtkTextBuffer` from a `GtkTextView` subclass. This allows you to create a signal group during instance construction, simply bind the `GtkTextView:buffer` property to `GSignalGroup:target` and connect all the signals you need. When the `GtkTextView:buffer` property changes all of the signals will be transitioned correctly.

Namespace: GLib
Package: gobject-2.0



Creation methods:



Inherited Members: