[gnome-boxes] app: Return to overview on launch in new window



commit 083af2fb9dda07572b785125832e92509397b41f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Feb 23 17:02:53 2015 +0000

    app: Return to overview on launch in new window
    
    If machine is running on the main window and user chooses to launch the
    machine it in a new window, return the main window to collection view.
    Otherwise, the main window just goes into an unusable blank state.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744434

 src/app.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 6690801..cee6500 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -333,6 +333,10 @@ private class Boxes.App: Gtk.Application {
             return;
         }
 
+        // machine.window == main_window could just mean machine is not running on any window so lets make 
sure..
+        if (machine.ui_state == UIState.DISPLAY)
+            machine.window.set_state (UIState.COLLECTION);
+
         var window = add_new_window ();
         window.connect_to (machine);
     }


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