[gnome-boxes/modal-window-groups] app-window: The toplevel window should be in window group



commit 151e591a4e6e2445b362def21d1dbd7cb930c8c4
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]