[gnome-boxes/modal-window-groups: 6/6] app-window: The toplevel window should be in window group
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/modal-window-groups: 6/6] app-window: The toplevel window should be in window group
- Date: Fri, 16 Feb 2018 11:49:08 +0000 (UTC)
commit cc93da448603740bd9b00c00dd4840ded9ada13d
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Feb 12 13:49:35 2018 +0100
app-window: The toplevel window should be in window group
Window groups (Gtk.WindowGroup) were introduced in order to allow
multiple windows running simultaneously and to prevent focus/input
conflicts between them and their respective dialogs such as wizard
and properties.
By including the toplevel window in its own window group within its
dialogs we can guarantee that the "modal" behavior is respected for
each group. e.g., an open dialog prevents any interaction with its
toplevel window but doesn't not interfere with other window groups.
Fixes #80
src/app-window.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index fcb91e6a..ebe7007a 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -194,6 +194,7 @@ public void setup_ui () {
notificationbar.searchbar = searchbar;
group = new Gtk.WindowGroup ();
+ group.add_window (this);
wizard_window = new WizardWindow (this);
group.add_window (wizard_window);
props_window = new PropertiesWindow (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]