Skip to content

Commit

Permalink
terminal-window: avoid deprecated 'vte_terminal_copy_clipboard'
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jun 27, 2018
1 parent a25437c commit 82e48ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/terminal-window.c
Expand Up @@ -1168,7 +1168,11 @@ terminal_window_update_copy_sensitivity (TerminalScreen *screen,

/* 24/07/2014 madars.vitolins@gmail.com, 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82e48ff

Please sign in to comment.