summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-06-16 17:25:25 +0200
committerZenWalker <[email protected]>2018-06-27 11:46:00 +0200
commit82e48ff2f5d23d3ec7d472e62425e40bc2c66b84 (patch)
tree13156e5c81c6c42c56ea95a6b538c7654b87c76b /src
parenta25437cac943f2ec6d97bd14b35519cbca95d80f (diff)
downloadmate-terminal-82e48ff2f5d23d3ec7d472e62425e40bc2c66b84.tar.bz2
mate-terminal-82e48ff2f5d23d3ec7d472e62425e40bc2c66b84.tar.xz
terminal-window: avoid deprecated 'vte_terminal_copy_clipboard'
Diffstat (limited to 'src')
-rw-r--r--src/terminal-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index ef7c147..d8c1e71 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1168,7 +1168,11 @@ terminal_window_update_copy_sensitivity (TerminalScreen *screen,
/* 24/07/2014 [email protected], sync to clibboard */
if (priv->copy_selection)
+#if VTE_CHECK_VERSION (0, 50, 0)
+ vte_terminal_copy_clipboard_format (VTE_TERMINAL(screen), VTE_FORMAT_TEXT);
+#else
vte_terminal_copy_clipboard(VTE_TERMINAL(screen));
+#endif
}
static void
@@ -3748,7 +3752,11 @@ edit_copy_callback (GtkAction *action,
if (!priv->active_screen)
return;
+#if VTE_CHECK_VERSION (0, 50, 0)
+ vte_terminal_copy_clipboard_format (VTE_TERMINAL (priv->active_screen), VTE_FORMAT_TEXT);
+#else
vte_terminal_copy_clipboard (VTE_TERMINAL (priv->active_screen));
+#endif
}
typedef struct