mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
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>
This commit is contained in:
parent
83cf07b0b5
commit
4d5942332f
2
ui/gtk.c
2
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");
|
||||
|
Loading…
Reference in New Issue
Block a user