[gnome-boxes] Fix "new box" when in DISPLAY mode



commit d3840e1405969f1f713a07c238fa28b9beee03b6
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jun 19 19:57:51 2012 +0200

    Fix "new box" when in DISPLAY mode
    
    If you create a new box via the app menu when in display mode we
    need to remove the current_item to ensure that its not displayed
    when in WIZARD mode and that its not later zoomed out when we
    go back to the collection mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677274

 src/collection-view.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index dfb03f0..ddcf176 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -82,6 +82,11 @@ private class Boxes.CollectionView: Boxes.UI {
                                                Clutter.BinAlignment.CENTER);
             break;
 
+        case UIState.WIZARD:
+            if (current_item != null)
+                actor_remove (current_item.actor);
+            break;
+
         case UIState.PROPERTIES:
             current_item.actor.hide ();
             break;



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