diff options
| author | eroen | 2016-10-12 18:46:02 +0200 |
|---|---|---|
| committer | eroen | 2016-10-12 18:46:02 +0200 |
| commit | de1ba250d1da83043974808ca14c92670c3f0a8f (patch) | |
| tree | ca4bb30ff1815de526c8a0af55a414329d5157a4 /x11-libs/vte/files | |
| parent | 52ae27fd3f7804265fc2d85bb074ad6597fa4be0 (diff) | |
| download | eroen-overlay-de1ba250d1da83043974808ca14c92670c3f0a8f.tar.gz eroen-overlay-de1ba250d1da83043974808ca14c92670c3f0a8f.tar.bz2 eroen-overlay-de1ba250d1da83043974808ca14c92670c3f0a8f.tar.xz | |
termite,vte - bump, fixes build with gcc 6
Diffstat (limited to 'x11-libs/vte/files')
6 files changed, 292 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch b/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch new file mode 100644 index 00000000..dbb158b3 --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch @@ -0,0 +1,64 @@ +expose functions for pausing unpausing output + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 6 ++++++ + src/vtegtk.cc | 26 ++++++++++++++++++++++++++ + 2 files changed, 32 insertions(+) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index 38ea8c3..453d807 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -167,6 +167,12 @@ void vte_terminal_feed_child_binary(VteTerminal *terminal, + const guint8 *data, + gsize length) _VTE_GNUC_NONNULL(1); + ++_VTE_PUBLIC ++void vte_terminal_connect_pty_read(VteTerminal *terminal); ++ ++_VTE_PUBLIC ++void vte_terminal_disconnect_pty_read(VteTerminal *terminal); ++ + /* Copy currently-selected text to the clipboard, or from the clipboard to + * the terminal. */ + _VTE_PUBLIC +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index a2591b4..ef868a5 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2336,6 +2336,32 @@ vte_terminal_feed_child(VteTerminal *terminal, + } + + /** ++ * vte_terminal_connect_pty_read: ++ * @terminal: a #VteTerminal ++ * ++ * Unpause output ++ */ ++void ++vte_terminal_connect_pty_read(VteTerminal *terminal) ++{ ++ g_return_if_fail(VTE_IS_TERMINAL(terminal)); ++ IMPL(terminal)->connect_pty_read(); ++} ++ ++/** ++ * vte_terminal_disconnect_pty_read: ++ * @terminal: a #VteTerminal ++ * ++ * Pause output ++ */ ++void ++vte_terminal_disconnect_pty_read(VteTerminal *terminal) ++{ ++ g_return_if_fail(VTE_IS_TERMINAL(terminal)); ++ IMPL(terminal)->disconnect_pty_read(); ++} ++ ++/** + * vte_terminal_feed_child_binary: + * @terminal: a #VteTerminal + * @data: data to send to the child diff --git a/x11-libs/vte/files/vte-0.44.2-ng/02-expose-function-for-setting.patch b/x11-libs/vte/files/vte-0.44.2-ng/02-expose-function-for-setting.patch new file mode 100644 index 00000000..ea86d2f6 --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.2-ng/02-expose-function-for-setting.patch @@ -0,0 +1,61 @@ +expose function for setting cursor position + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 5 +++++ + src/vtegtk.cc | 24 ++++++++++++++++++++++++ + 2 files changed, 29 insertions(+) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index 453d807..f11beb5 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -339,6 +339,11 @@ _VTE_PUBLIC + void vte_terminal_get_cursor_position(VteTerminal *terminal, + glong *column, + glong *row) _VTE_GNUC_NONNULL(1); ++_VTE_PUBLIC ++void vte_terminal_set_cursor_position(VteTerminal *terminal, ++ glong column, ++ glong row) _VTE_GNUC_NONNULL(1); ++ + + /* Add a matching expression, returning the tag the widget assigns to that + * expression. */ +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index ef868a5..a35da34 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2171,6 +2171,30 @@ vte_terminal_get_cursor_position(VteTerminal *terminal, + } + + /** ++ * vte_terminal_set_cursor_position ++ * @terminal: a #VteTerminal ++ * @column: the new cursor column ++ * @row: the new cursor row ++ * ++ * Set the location of the cursor. ++ */ ++void ++vte_terminal_set_cursor_position(VteTerminal *terminal, ++ long column, long row) ++{ ++ g_return_if_fail(VTE_IS_TERMINAL(terminal)); ++ ++ auto impl = IMPL(terminal); ++ impl->invalidate_cursor_once(FALSE); ++ impl->m_screen->cursor.col = column; ++ impl->m_screen->cursor.row = row; ++ impl->invalidate_cursor_once(FALSE); ++ impl->check_cursor_blink(); ++ impl->queue_cursor_moved(); ++ ++} ++ ++/** + * vte_terminal_pty_new_sync: + * @terminal: a #VteTerminal + * @flags: flags from #VtePtyFlags diff --git a/x11-libs/vte/files/vte-0.44.2-ng/03-add-function-for-setting-the.patch b/x11-libs/vte/files/vte-0.44.2-ng/03-add-function-for-setting-the.patch new file mode 100644 index 00000000..7c4794c7 --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.2-ng/03-add-function-for-setting-the.patch @@ -0,0 +1,56 @@ +add function for setting the text selections + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 4 ++++ + src/vtegtk.cc | 20 ++++++++++++++++++++ + 2 files changed, 24 insertions(+) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index f11beb5..822f44f 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -187,6 +187,10 @@ _VTE_PUBLIC + void vte_terminal_select_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); + _VTE_PUBLIC + void vte_terminal_unselect_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); ++_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); ++ + + /* By-word selection */ + _VTE_PUBLIC +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index a35da34..66bfe3b 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2146,6 +2146,26 @@ vte_terminal_unselect_all(VteTerminal *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) ++{ ++ g_return_if_fail (VTE_IS_TERMINAL (terminal)); ++ ++ IMPL(terminal)->select_text(start_col, start_row, end_col, end_row); ++} ++ ++/** + * vte_terminal_get_cursor_position: + * @terminal: a #VteTerminal + * @column: (out) (allow-none): a location to store the column, or %NULL diff --git a/x11-libs/vte/files/vte-0.44.2-ng/04-add-functions-to-get-set-block.patch b/x11-libs/vte/files/vte-0.44.2-ng/04-add-functions-to-get-set-block.patch new file mode 100644 index 00000000..0300d77b --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.2-ng/04-add-functions-to-get-set-block.patch @@ -0,0 +1,62 @@ +add functions to get/set block selection mode + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 5 +++++ + src/vtegtk.cc | 25 +++++++++++++++++++++++++ + 2 files changed, 30 insertions(+) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index 822f44f..22ee7f7 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -188,6 +188,11 @@ void vte_terminal_select_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); + _VTE_PUBLIC + void vte_terminal_unselect_all(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); + _VTE_PUBLIC ++gboolean vte_terminal_get_selection_block_mode(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); ++_VTE_PUBLIC ++void vte_terminal_set_selection_block_mode(VteTerminal *terminal, ++ gboolean block_mode) _VTE_GNUC_NONNULL(1); ++_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); + +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index 66bfe3b..27734c2 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2144,6 +2144,31 @@ vte_terminal_unselect_all(VteTerminal *terminal) + + IMPL(terminal)->deselect_all(); + } ++/** ++ * vte_terminal_get_selection_block_mode: ++ * @terminal: a #VteTerminal ++ * ++ * Checks whether or not block selection is enabled. ++ * ++ * Returns: %TRUE if block selection is enabled, %FALSE if not ++ */ ++ ++gboolean vte_terminal_get_selection_block_mode(VteTerminal *terminal) { ++ g_return_val_if_fail(VTE_IS_TERMINAL(terminal), FALSE); ++ return IMPL(terminal)->m_selection_block_mode; ++} ++/** ++ * vte_terminal_set_selection_block_mode: ++ * @terminal: a #VteTerminal ++ * @block_mode: whether block selection is enabled ++ * ++ * Sets whether or not block selection is enabled. ++ */ ++void ++vte_terminal_set_selection_block_mode(VteTerminal *terminal, gboolean block_mode) { ++ g_return_if_fail (VTE_IS_TERMINAL (terminal)); ++ IMPL(terminal)->m_selection_block_mode = block_mode; ++} + + /** + * vte_terminal_select_text: diff --git a/x11-libs/vte/files/vte-0.44.2-ng/05-expose-function-for-getting.patch b/x11-libs/vte/files/vte-0.44.2-ng/05-expose-function-for-getting.patch new file mode 100644 index 00000000..e1eb92aa --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.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 22ee7f7..95ffac6 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -195,7 +195,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 27734c2..ca3c6fb 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2190,6 +2190,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_text[VTE_SELECTION_PRIMARY]); ++} ++ + /** + * vte_terminal_get_cursor_position: + * @terminal: a #VteTerminal diff --git a/x11-libs/vte/files/vte-0.44.2-ng/series b/x11-libs/vte/files/vte-0.44.2-ng/series new file mode 100644 index 00000000..7e86902d --- /dev/null +++ b/x11-libs/vte/files/vte-0.44.2-ng/series @@ -0,0 +1,6 @@ +# This series applies on GIT commit 8dbe242198fb3a4ce453866cfb4aa9dae9c3b9c4 +01-expose-functions-for-pausing.patch +02-expose-function-for-setting.patch +03-add-function-for-setting-the.patch +04-add-functions-to-get-set-block.patch +05-expose-function-for-getting.patch |
