[virt-tools-list] [PATCH virt-viewer 1/4] window: Do not use constant

Pavel Grunt pgrunt at redhat.com
Wed Jun 22 06:17:44 UTC 2016


---
 src/virt-viewer-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 8ec2521..e03df65 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -378,7 +378,7 @@ virt_viewer_window_get_real_zoom_level(VirtViewerWindow *self)
     GtkAllocation allocation;
     guint width, height;
 
-    g_return_val_if_fail(self->priv->display != NULL, 100);
+    g_return_val_if_fail(self->priv->display != NULL, NORMAL_ZOOM_LEVEL);
 
     gtk_widget_get_allocation(GTK_WIDGET(self->priv->display), &allocation);
     virt_viewer_display_get_desktop_size(self->priv->display, &width, &height);
-- 
2.9.0




More information about the virt-tools-list mailing list