[gnome-boxes] Fix screenshot zooming when going to properties view



commit 3647b079e0c3c21db83342307863831a1a356f13
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 22 09:32:43 2013 +0100

    Fix screenshot zooming when going to properties view
    
    We used to rely on getting at least one size allocate, but with recent
    Gtk+ we don't get that, so make sure we initialize the animation with the
    current allocation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691675

 src/machine.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 8f8cbc6..ac54435 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -703,10 +703,9 @@ private class Boxes.MachineActor: Boxes.UI {
                 });
             });
 
-            if (!zoom) {
+            if (!zoom)
                 thumbnail.set_easing_duration (0);
-                update_screenshot_alloc (thumbnail);
-            }
+            update_screenshot_alloc (thumbnail);
         }
     }
 



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