[qemu-xen stable-4.9] ui/gtk: Fix deprecation of vte_terminal_copy_clipboard

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[qemu-xen stable-4.9] ui/gtk: Fix deprecation of vte_terminal_copy_clipboard

patchbot
commit b397ed6a586b0a93e9a8b47f5b3008fac34f5f37
Author:     Anthony PERARD <[hidden email]>
AuthorDate: Tue Oct 10 11:24:18 2017 +0100
Commit:     Anthony PERARD <[hidden email]>
CommitDate: Thu Nov 9 16:02:44 2017 +0000

    ui/gtk: Fix deprecation of vte_terminal_copy_clipboard
   
    vte_terminal_copy_clipboard() is deprecated in VTE 0.50.
   
    Signed-off-by: Anthony PERARD <[hidden email]>
    Reviewed-by: Daniel P. Berrange <[hidden email]>
    Signed-off-by: Michael Tokarev <[hidden email]>
    (cherry picked from commit 70857ad6212276dcda364e36b30258222bdb31bc)
---
 ui/gtk.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ui/gtk.c b/ui/gtk.c
index a216216..3b0ffa0 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1661,7 +1661,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)
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#stable-4.9

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog