From 64f201eff8702eeb08d1743bccd6dd412b3f8d8b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 28 Jan 2012 16:38:01 -0500 Subject: [PATCH] console: Fix spice scaling Actually scale, not try and resize guest resolution. We will want to add new UI or smarts to enable that. --- src/virtManager/console.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/virtManager/console.py b/src/virtManager/console.py index e97704c2b..17b0467cb 100644 --- a/src/virtManager/console.py +++ b/src/virtManager/console.py @@ -526,10 +526,15 @@ class SpiceViewer(Viewer): self.spice_session.connect() def get_scaling(self): - return self.display.get_property("resize-guest") + if not has_property(self.display, "scaling"): + return False + return self.display.get_property("scaling") def set_scaling(self, scaling): - self.display.set_property("resize-guest", scaling) + if not has_property(self.display, "scaling"): + logging.debug("Spice version doesn't support scaling.") + return + self.display.set_property("scaling", scaling) class vmmConsolePages(vmmGObjectUI):