From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJDK-0000q0-5Z for qemu-devel@nongnu.org; Fri, 10 Jun 2016 05:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBJDE-0007JV-5A for qemu-devel@nongnu.org; Fri, 10 Jun 2016 05:58:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJDE-0007JN-0A for qemu-devel@nongnu.org; Fri, 10 Jun 2016 05:58:48 -0400 From: Gerd Hoffmann Date: Fri, 10 Jun 2016 11:58:40 +0200 Message-Id: <1465552722-14567-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1465552722-14567-1-git-send-email-kraxel@redhat.com> References: <1465552722-14567-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 3/5] gtk: fix vte version check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Olaf Hering , Gerd Hoffmann From: 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 Message-id: 20160608214352.32669-1-olaf@aepfle.de Signed-off-by: Gerd Hoffmann --- 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"); -- 1.8.3.1