Basics
Guides
API Reference
Basics
Guides
API Reference
[26:7] extends: 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.
SignalGroup (Handle = null)
Creates a new
SignalGroupby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnBind (callback Fn, UserData = null)
This signal is emitted when #GSignalGroup:target is set to a new value other than %NULL. It is similar to #GObject::notify on
targetexcept it will not emit when #GSignalGroup:target is %NULL and also allows for receiving the #GObject without a data-race.
Fn is the Aussom callback.Fn is called with (SignalGroup Self, Object Instance).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnUnbind (callback Fn, UserData = null)
This signal is emitted when the target instance of @self is set to a new #GObject. This signal will only be emitted if the previous target of
is non-%NULL.Fn is the Aussom callback.Fn is called with (SignalGroup Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setTarget (object Value)
The target instance used when connecting signals.
Value is the new property value.None.block ()
Blocks all signal handlers managed by @self so they will not be called during any signal emissions. Must be unblocked exactly the same number of times it has been blocked to become active again. This blocked state will be kept across changes of the target instance.
None.connect_closure (string detailed_signal, object closure, bool after)
Connects @closure to the signal @detailed_signal on #GSignalGroup:target. You cannot connect a signal handler after #GSignalGroup:target has been set.
detailed_signal is a string of the form signal-name with optional ::signal-detail.closure is the closure to connect..after is whether the handler should be called before or after the default handler of the signal..None.dup_target ()
Gets the target instance used when connecting signals.
set_target (object target)
Sets the target instance used when connecting signals. Any signal that has been registered with g_signal_group_connect_object() or similar functions will be connected to this object. If the target instance was previously set, signals will be disconnected from that object prior to connecting to @target.
target is The target instance used when connecting signals..None.unblock ()
Unblocks all signal handlers managed by @self so they will be called again during any signal emissions unless it is blocked again. Must be unblocked exactly the same number of times it has been blocked to become active again.
None.[284:7] extends: object
Generated low-level callback wrapper for GIR callback bind.
SignalGroupBindCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, instance, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[355:7] extends: object
Generated low-level callback wrapper for GIR callback unbind.
SignalGroupUnbindCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[425:14] static extends: object
Generated metadata helpers for SignalGroup class surfaces.
properties ()
Returns property metadata for
SignalGroup.
A list.signals ()
Returns signal metadata for
SignalGroup.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.