Received: from eggs.gnu.org ([2001:4830:134:3::10]:60505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAlTU-0000Xc-6I for qemu-devel@nongnu.org; Wed, 08 Jun 2016 17:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAlTS-0001bU-5H for qemu-devel@nongnu.org; Wed, 08 Jun 2016 17:57:19 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]:57986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAlTR-0001bI-R9 for qemu-devel@nongnu.org; Wed, 08 Jun 2016 17:57:18 -0400 From: Olaf Hering Date: Wed, 8 Jun 2016 21:43:52 +0000 Message-Id: <20160608214352.32669-1-olaf@aepfle.de> Subject: [Qemu-devel] [PATCH] gtk: fix vte version check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , Paolo Bonzini Cc: qemu-devel@nongnu.org, Olaf Hering vte_terminal_set_encoding takes 3 args since 0.38.0. This fixes commit fba958c6 ("gtk: implement set_echo") Signed-off-by: Olaf Hering --- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index 01b8216..58d20ee 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");