Commit 82a4f1a9 authored by Anthony PERARD's avatar Anthony PERARD Committed by Gerd Hoffmann
Browse files

ui/gtk: Fix deprecation of vte_terminal_copy_clipboard



vte_terminal_copy_clipboard() is deprecated in VTE 0.50.

Signed-off-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
Reviewed-by: default avatarDaniel P. Berrange <berrange@redhat.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent a7815faf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)