Basics
Guides
API Reference
Basics
Guides
API Reference
[22:7] extends: object
Creates groups of windows that behave like separate applications. It achieves
this by limiting the effect of GTK grabs and modality to windows in the same
group. A window can be a member in at most one window group at a time.
Windows that have not been explicitly assigned to a group are implicitly
treated like windows of the default window group. GtkWindowGroup objects
are referenced by each window in the group, so once you have added all
windows to a GtkWindowGroup, you can drop the initial reference to the
window group with g_object_unref(). If the windows in the window group are
subsequently destroyed, then they will be removed from the window group and
drop their references on the window group; when all window have been removed,
the window group will be freed.
WindowGroup ()
Creates a new
GtkWindowGroupobject. Modality of windows only affects windows within the sameGtkWindowGroup.
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.add_window (object window)
Adds a window to a
GtkWindowGroup.
window is the GtkWindow to add.None.list_windows ()
Returns a list of the
GtkWindowsthat belong to @window_group.
remove_window (object window)
Removes a window from a
GtkWindowGroup.
window is the GtkWindow to remove.None.windows ()
Returns
list_windowsas an Aussom list of wrapper objects. This companion method materializes the full collection up front; uselist_windows()when lazy or change-notify access is required.
An Aussom list of elements.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.