1.218 <GtkWindowGroup>

Class: <GtkWindowGroup>

It derives from <GObject>.

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 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.

Fields

parent-instance
priv

Procedures

Method: window-group:add-window self window
Method: add-window self window

Adds a window to a <GtkWindowGroup>.

self

Passed: a <GtkWindowGroup>.

a <GtkWindowGroup>

window

Passed: a <GtkWindow>.

the <GtkWindow> to add

Method: window-group:list-windows self ⇒ %return
Method: list-windows self ⇒ %return

Returns a list of the GtkWindows that belong to self.

self

Passed: a <GtkWindowGroup>.

a <GtkWindowGroup>

%return

Returned: a list, each a <GtkWindow>.

A newly-allocated list of windows inside the group.

Procedure: window-group:new ⇒ %return

Creates a new <GtkWindowGroup> object.

Modality of windows only affects windows within the same <GtkWindowGroup>.

%return

Returned: a <GtkWindowGroup>.

a new <GtkWindowGroup>.

Method: window-group:remove-window self window
Method: remove-window self window

Removes a window from a <GtkWindowGroup>.

self

Passed: a <GtkWindowGroup>.

a <GtkWindowGroup>

window

Passed: a <GtkWindow>.

the <GtkWindow> to remove