[virt-tools-list] [PATCH virt-viewer] display: Use correct variable name
Pavel Grunt
pgrunt at redhat.com
Mon Feb 15 16:53:55 UTC 2016
Fix gtk2 build
---
src/virt-viewer-display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index bac0c7c..e3f86a3 100644
--- a/src/virt-viewer-display.c
+++ b/src/virt-viewer-display.c
@@ -378,7 +378,7 @@ void virt_viewer_display_get_preferred_size(VirtViewerDisplay *self,
requisition->width = border_width * 2;
requisition->height = border_width * 2;
- if (virt_viewer_display_get_zoom(display)) {
+ if (virt_viewer_display_get_zoom(self)) {
requisition->width += round(priv->desktopWidth * priv->zoom_level / (double) NORMAL_ZOOM_LEVEL);
requisition->height += round(priv->desktopHeight * priv->zoom_level / (double) NORMAL_ZOOM_LEVEL);
} else {
--
2.5.0
More information about the virt-tools-list
mailing list