[gnome-boxes/gnome-3-18] app-window: Window group for each window



commit af5d00efb2ef1ff47025e5adcaf877061816dec5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Sep 30 16:39:26 2015 +0100

    app-window: Window group for each window
    
    Put each AppWindow instance and associated PropertiesWindow and
    WizardWindow instances in a separate window group. This fixes the issue
    of properties window blocking all windows from user.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748182

 src/app-window.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 97dc27a..c2e3729 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -122,6 +122,8 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
     private uint configure_id;
     public static const uint configure_id_timeout = 100;  // 100ms
 
+    private Gtk.WindowGroup group;
+
     public AppWindow (Gtk.Application app) {
         Object (application:  app,
                 title:        _("Boxes"),
@@ -173,8 +175,11 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
         empty_boxes.setup_ui (this);
         notificationbar.searchbar = searchbar;
 
+        group = new Gtk.WindowGroup ();
         wizard_window = new WizardWindow (this);
+        group.add_window (wizard_window);
         props_window = new PropertiesWindow (this);
+        group.add_window (props_window);
 
         notify["view-type"].connect (ui_state_changed);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]