summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Hering2016-06-08 23:43:52 +0200
committerGerd Hoffmann2016-06-10 11:13:15 +0200
commit4d5942332f42a17c9ebbf67ef335ec72fcd789ff (patch)
tree6c37f54f3054353eb40705a5ce6af877b544bc91
parentui: fix regression in printing VNC host/port on startup (diff)
downloadqemu-4d5942332f42a17c9ebbf67ef335ec72fcd789ff.tar.gz
qemu-4d5942332f42a17c9ebbf67ef335ec72fcd789ff.tar.xz
qemu-4d5942332f42a17c9ebbf67ef335ec72fcd789ff.zip
gtk: fix vte version check
vte_terminal_set_encoding takes 3 args since 0.38.0. This fixes commit fba958c6 ("gtk: implement set_echo") Signed-off-by: Olaf Hering <olaf@aepfle.de> Message-id: 20160608214352.32669-1-olaf@aepfle.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--ui/gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 01b821616e..58d20eed62 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1748,7 +1748,7 @@ static GSList *gd_vc_vte_init(GtkDisplayState *s, VirtualConsole *vc,
/* The documentation says that the default is UTF-8, but actually it is
* 7-bit ASCII at least in VTE 0.38.
*/
-#if VTE_CHECK_VERSION(0, 40, 0)
+#if VTE_CHECK_VERSION(0, 38, 0)
vte_terminal_set_encoding(VTE_TERMINAL(vc->vte.terminal), "UTF-8", NULL);
#else
vte_terminal_set_encoding(VTE_TERMINAL(vc->vte.terminal), "UTF-8");