summaryrefslogtreecommitdiff
path: root/x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch')
-rw-r--r--x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch b/x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch
new file mode 100644
index 00000000..60ca661b
--- /dev/null
+++ b/x11-libs/vte/files/vte-ng-0.42.4/05-expose-function-for-getting.patch
@@ -0,0 +1,63 @@
+expose function for getting the selected text
+
+From: Daniel Micay <danielmicay@gmail.com>
+
+
+---
+ src/vte.cc | 2 +-
+ src/vte/vteterminal.h | 2 ++
+ src/vteaccess.cc | 2 +-
+ src/vteint.h | 1 -
+ 4 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/src/vte.cc b/src/vte.cc
+index 82e9891..b431e5e 100644
+--- a/src/vte.cc
++++ b/src/vte.cc
+@@ -12598,7 +12598,7 @@ _vte_terminal_accessible_ref(VteTerminal *terminal)
+ }
+
+ char *
+-_vte_terminal_get_selection(VteTerminal *terminal)
++vte_terminal_get_selection(VteTerminal *terminal)
+ {
+ g_return_val_if_fail(VTE_IS_TERMINAL(terminal), NULL);
+
+diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
+index 3cb5c71..72fc362 100644
+--- a/src/vte/vteterminal.h
++++ b/src/vte/vteterminal.h
+@@ -181,6 +181,8 @@ void vte_terminal_set_selection_block_mode(VteTerminal *terminal,
+ void vte_terminal_select_text(VteTerminal *terminal,
+ long start_col, long start_row,
+ long end_col, long end_row) _VTE_GNUC_NONNULL(1);
++char *
++vte_terminal_get_selection(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
+
+ /* pause and unpause output */
+ void vte_terminal_disconnect_pty_read(VteTerminal *vte);
+diff --git a/src/vteaccess.cc b/src/vteaccess.cc
+index c5c6414..5c14bcb 100644
+--- a/src/vteaccess.cc
++++ b/src/vteaccess.cc
+@@ -1441,7 +1441,7 @@ vte_terminal_accessible_get_selection(AtkText *text, gint selection_number,
+ *start_offset = offset_from_xy (priv, start_x, start_y);
+ _vte_terminal_get_end_selection (terminal, &end_x, &end_y);
+ *end_offset = offset_from_xy (priv, end_x, end_y);
+- return _vte_terminal_get_selection (terminal);
++ return vte_terminal_get_selection (terminal);
+ }
+
+ static gboolean
+diff --git a/src/vteint.h b/src/vteint.h
+index 7f57eb1..e0a3bec 100644
+--- a/src/vteint.h
++++ b/src/vteint.h
+@@ -24,7 +24,6 @@
+ G_BEGIN_DECLS
+
+ void _vte_terminal_accessible_ref(VteTerminal *terminal);
+-char* _vte_terminal_get_selection(VteTerminal *terminal);
+ void _vte_terminal_get_start_selection(VteTerminal *terminal, long *x, long *y);
+ void _vte_terminal_get_end_selection(VteTerminal *terminal, long *x, long *y);
+ void _vte_terminal_select_text(VteTerminal *terminal, long start_x, long start_y, long end_x, long end_y, int start_offset, int end_offset);