diff options
| author | Erik Moen | 2019-08-27 22:48:15 +0200 |
|---|---|---|
| committer | Erik Moen | 2019-08-27 22:48:15 +0200 |
| commit | 9e58877c354b378da4f56972df3e2be5d669dfe4 (patch) | |
| tree | 705eabfe36a0a82f3ef7bb3c8677063189f3646f /x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch | |
| parent | 0465f9b9afb55f0b9f88a368276e9a1fe54e3c19 (diff) | |
| download | eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.gz eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.bz2 eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.xz | |
vte-0.54.4 from gentoo + vte-ng
Signed-off-by: Erik Moen <eroen-overlay@occam.eroen.eu>
Diffstat (limited to 'x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch')
| -rw-r--r-- | x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch b/x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch new file mode 100644 index 00000000..94701472 --- /dev/null +++ b/x11-libs/vte/files/vte-0.54.2-ng/05-expose-function-for-getting.patch @@ -0,0 +1,43 @@ +expose function for getting the selected text + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 4 +++- + src/vtegtk.cc | 7 +++++++ + 2 files changed, 10 insertions(+), 1 deletion(-) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index 87096bc0..8bdbde30 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -204,7 +204,9 @@ void vte_terminal_set_selection_block_mode(VteTerminal *terminal, + _VTE_PUBLIC + void vte_terminal_select_text(VteTerminal *terminal, long start_col, long start_row, + long end_col, long end_row) _VTE_GNUC_NONNULL(1); +- ++_VTE_PUBLIC ++char * ++vte_terminal_get_selection(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); + + /* By-word selection */ + _VTE_PUBLIC +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index 27ad64da..0067e58a 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2435,6 +2435,13 @@ vte_terminal_select_text(VteTerminal *terminal, + IMPL(terminal)->select_text(start_col, start_row, end_col, end_row); + } + ++char * ++vte_terminal_get_selection(VteTerminal *terminal) ++{ ++ g_return_val_if_fail(VTE_IS_TERMINAL(terminal), NULL); ++ return g_strdup (IMPL(terminal)->m_selection[VTE_SELECTION_PRIMARY]->str); ++} ++ + /** + * vte_terminal_get_cursor_position: + * @terminal: a #VteTerminal |
