Skip to content

Commit 82e48ff

Browse files
committed
terminal-window: avoid deprecated 'vte_terminal_copy_clipboard'
1 parent a25437c commit 82e48ff

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/terminal-window.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,11 @@ terminal_window_update_copy_sensitivity (TerminalScreen *screen,
11681168

11691169
/* 24/07/2014 madars.vitolins@gmail.com, sync to clibboard */
11701170
if (priv->copy_selection)
1171+
#if VTE_CHECK_VERSION (0, 50, 0)
1172+
vte_terminal_copy_clipboard_format (VTE_TERMINAL(screen), VTE_FORMAT_TEXT);
1173+
#else
11711174
vte_terminal_copy_clipboard(VTE_TERMINAL(screen));
1175+
#endif
11721176
}
11731177

11741178
static void
@@ -3748,7 +3752,11 @@ edit_copy_callback (GtkAction *action,
37483752
if (!priv->active_screen)
37493753
return;
37503754

3755+
#if VTE_CHECK_VERSION (0, 50, 0)
3756+
vte_terminal_copy_clipboard_format (VTE_TERMINAL (priv->active_screen), VTE_FORMAT_TEXT);
3757+
#else
37513758
vte_terminal_copy_clipboard (VTE_TERMINAL (priv->active_screen));
3759+
#endif
37523760
}
37533761

37543762
typedef struct

0 commit comments

Comments
 (0)