summaryrefslogtreecommitdiff
path: root/x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch')
-rw-r--r--x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch b/x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch
new file mode 100644
index 00000000..49029ee5
--- /dev/null
+++ b/x11-libs/vte/files/vte-ng-0.42.4/03-add-function-for-setting-the.patch
@@ -0,0 +1,53 @@
+add function for setting the text selection
+
+From: Daniel Micay <danielmicay@gmail.com>
+
+
+---
+ src/vte.cc | 18 ++++++++++++++++++
+ src/vte/vteterminal.h | 3 +++
+ 2 files changed, 21 insertions(+)
+
+diff --git a/src/vte.cc b/src/vte.cc
+index 5daa311..1c995bf 100644
+--- a/src/vte.cc
++++ b/src/vte.cc
+@@ -7245,6 +7245,24 @@ vte_terminal_unselect_all(VteTerminal *terminal)
+ vte_terminal_deselect_all (terminal);
+ }
+
++
++/**
++ * vte_terminal_select_text:
++ * @terminal: a #VteTerminal
++ * @start_col: the starting column for the selection
++ * @start_row: the starting row for the selection
++ * @end_col: the end column for the selection
++ * @end_row: the end row for the selection
++ *
++ * Sets the current selection region.
++ */
++void
++vte_terminal_select_text(VteTerminal *terminal,
++ long start_col, long start_row,
++ long end_col, long end_row) {
++ _vte_terminal_select_text(terminal, start_col, start_row, end_col, end_row, 0, 0);
++}
++
+ /* Autoscroll a bit. */
+ static gboolean
+ vte_terminal_autoscroll(VteTerminal *terminal)
+diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
+index 4a03a96..08414df 100644
+--- a/src/vte/vteterminal.h
++++ b/src/vte/vteterminal.h
+@@ -175,6 +175,9 @@ void vte_terminal_paste_primary(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
+
+ void vte_terminal_select_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
+ void vte_terminal_unselect_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
++void vte_terminal_select_text(VteTerminal *terminal,
++ long start_col, long start_row,
++ long end_col, long end_row) _VTE_GNUC_NONNULL(1);
+
+ /* pause and unpause output */
+ void vte_terminal_disconnect_pty_read(VteTerminal *vte);