summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-01-22 09:32:43 +0100
committerAlexander Larsson <alexl@redhat.com>2013-01-22 16:01:39 +0100
commit3647b079e0c3c21db83342307863831a1a356f13 (patch)
tree4f79810ba46da7a1f55fee7d7824f71e59f28cac
parent8e2397325949c267e2e07667f5f685f47a396545 (diff)
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
-rw-r--r--src/machine.vala5
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);
}
}