aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2017-10-10 11:24:18 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-10-16 14:50:54 +0200
commit82a4f1a96ed6be87c0ef6d4393b22085751bd450 (patch)
treeafc6ab9b6e5c9810b8625b03113529cb4286f164 /ui
parenta7815faffb2bd594b92aa3542d7b799cc89c5414 (diff)
downloadqemu-82a4f1a96ed6be87c0ef6d4393b22085751bd450.zip
qemu-82a4f1a96ed6be87c0ef6d4393b22085751bd450.tar.gz
qemu-82a4f1a96ed6be87c0ef6d4393b22085751bd450.tar.bz2
ui/gtk: Fix deprecation of vte_terminal_copy_clipboard
vte_terminal_copy_clipboard() is deprecated in VTE 0.50. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 5bd87c2..342e96f 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1702,7 +1702,12 @@ static void gd_menu_copy(GtkMenuItem *item, void *opaque)
GtkDisplayState *s = opaque;
VirtualConsole *vc = gd_vc_find_current(s);
+#if VTE_CHECK_VERSION(0, 50, 0)
+ vte_terminal_copy_clipboard_format(VTE_TERMINAL(vc->vte.terminal),
+ VTE_FORMAT_TEXT);
+#else
vte_terminal_copy_clipboard(VTE_TERMINAL(vc->vte.terminal));
+#endif
}
static void gd_vc_adjustment_changed(GtkAdjustment *adjustment, void *opaque)