6505c36ecc
virtman-netstats-fix.diff virtman-finish-button-fix.diff virtman-shutoff-fix.diff virtman-set-has-window-fix.diff virtman-grep-fix.diff virtman-no-cd-present-fix.diff virtman-resize-menu-fix.diff virtman-vcpu-count-fix.diff virtman-storage-pool-fix.diff virtman-domain-name-fix.diff virtman-unapplied-changes-fix.diff virtman-details-fix.diff virtman-delete-fix.diff virtman-collidelist-fix.diff virtman-char-device-mode-fix.diff virtinst-hv-version-fix.diff virtinst-initrd-inject-fix.diff virtinst-initrd-inject2-fix.diff virtinst-no-volume-fix.diff virtinst-prompts-fix.diff virtinst-cpu-model-name-fix.diff virtinst-xml-clear-fix.diff virtinst-remote-storage-fix.diff virtinst-error-message-fix.diff virtinst-typo-fix.diff virtinst-cdrom.diff virtinst-storage-ocfs2.diff OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=63
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
|
|
Subject: virt-manager: Fix "Resize to VM" menu option
|
|
From: Marc Deslauriers marc.deslauriers@canonical.com Fri Aug 19 11:50:11 2011 -0400
|
|
Date: Tue Aug 23 15:48:30 2011 -0400:
|
|
Git: a815fa17a7c643ddde8ea326399e2bee449dff98
|
|
|
|
Hello,
|
|
|
|
This patch fixes the "Resize to VM" menu option by correcting inverted return
|
|
values in autodrawer.py.
|
|
|
|
Thanks,
|
|
|
|
Marc.
|
|
|
|
commit 8e666f4b87926c866ed35e58eb82213d2c514e89
|
|
Author: Marc Deslauriers <marc.deslauriers@ubuntu.com>
|
|
Date: Fri Aug 19 11:46:48 2011 -0400
|
|
|
|
Fix inverted width and height
|
|
|
|
Index: virt-manager-0.9.0/src/virtManager/autodrawer.py
|
|
===================================================================
|
|
--- virt-manager-0.9.0.orig/src/virtManager/autodrawer.py
|
|
+++ virt-manager-0.9.0/src/virtManager/autodrawer.py
|
|
@@ -271,10 +271,10 @@ class OverBox(parentclass):
|
|
self.underWin = None
|
|
|
|
def do_size_request(self, req):
|
|
- height, width = self._size_request()
|
|
+ width, height = self._size_request()
|
|
|
|
- req.height = height
|
|
req.width = width
|
|
+ req.height = height
|
|
|
|
def do_size_allocate(self, newalloc):
|
|
self.allocation = newalloc
|