]> git.proxmox.com Git - mirror_qemu.git/commitdiff
gtk: set free_scale when setting zoom_fit
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 9 Sep 2015 08:34:41 +0000 (10:34 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Sep 2015 10:27:40 +0000 (12:27 +0200)
free_scale field tracks zoom-fit menu toggle state,
so we should keep them in sync ...

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ui/gtk.c

index 322d112410f98208dd0fc4a3ce7186071c349ee9..2629d979e0ce94806cdd6a0a1901ee4a09460b50 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1782,6 +1782,7 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc,
 
     if (dpy_ui_info_supported(vc->gfx.dcl.con)) {
         gtk_menu_item_activate(GTK_MENU_ITEM(s->zoom_fit_item));
+        s->free_scale = true;
     }
 
     return group;