summaryrefslogtreecommitdiff
path: root/ui/gtk.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-09-09 10:34:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-09-15 12:27:40 +0200
commit1d73cd782fb910811a2e6b9d9b3375c4803d731c (patch)
tree482526f6e3067228f7495876615f73a2f73d406b /ui/gtk.c
parentd531deef119666d4b3605e186a43010782efd899 (diff)
downloadqemu-1d73cd782fb910811a2e6b9d9b3375c4803d731c.tar.gz
qemu-1d73cd782fb910811a2e6b9d9b3375c4803d731c.tar.bz2
qemu-1d73cd782fb910811a2e6b9d9b3375c4803d731c.zip
gtk: set free_scale when setting zoom_fit
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>
Diffstat (limited to 'ui/gtk.c')
-rw-r--r--ui/gtk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 322d112410..2629d979e0 100644
--- 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;