diff options
author | Egmont Koblinger <egmont@gmail.com> | 2019-06-06 23:31:07 +0200 |
---|---|---|
committer | Egmont Koblinger <egmont@gmail.com> | 2019-06-06 23:36:14 +0200 |
commit | aa4e84ca35dbcbd508c829818d59726f48875429 (patch) | |
tree | 5ff987bcb5a706bf03c6c762951a677f2c2edc71 | |
parent | afe6f05571c44ef2d75e8f8dba8e2b16344b7e9f (diff) | |
download | vte-aa4e84ca35dbcbd508c829818d59726f48875429.tar.gz |
widget: Deprecate vte_terminal_[sg]et_rewrap_on_resize()
Rewrapping is planned to be always enabled.
https://gitlab.gnome.org/GNOME/vte/issues/135
-rw-r--r-- | doc/reference/vte-sections.txt | 4 | ||||
-rw-r--r-- | src/vte/vtedeprecated.h | 8 | ||||
-rw-r--r-- | src/vte/vteterminal.h | 5 | ||||
-rw-r--r-- | src/vtegtk.cc | 6 |
4 files changed, 16 insertions, 7 deletions
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt index 9ab873c1..f58b9b3f 100644 --- a/doc/reference/vte-sections.txt +++ b/doc/reference/vte-sections.txt @@ -34,8 +34,6 @@ vte_terminal_set_scroll_on_output vte_terminal_get_scroll_on_output vte_terminal_set_scroll_on_keystroke vte_terminal_get_scroll_on_keystroke -vte_terminal_set_rewrap_on_resize -vte_terminal_get_rewrap_on_resize vte_terminal_set_cell_height_scale vte_terminal_get_cell_height_scale vte_terminal_set_cell_width_scale @@ -151,6 +149,8 @@ vte_terminal_get_icon_title vte_terminal_set_encoding vte_terminal_get_encoding vte_terminal_get_text_include_trailing_spaces +vte_terminal_set_rewrap_on_resize +vte_terminal_get_rewrap_on_resize <SUBSECTION Private> VteCharAttributes diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h index 9763445a..f2250931 100644 --- a/src/vte/vtedeprecated.h +++ b/src/vte/vtedeprecated.h @@ -132,6 +132,14 @@ char *vte_terminal_get_text_include_trailing_spaces(VteTerminal *terminal, gpointer user_data, GArray *attributes) _VTE_GNUC_NONNULL(1) G_GNUC_MALLOC; +_VTE_DEPRECATED +_VTE_PUBLIC +void vte_terminal_set_rewrap_on_resize(VteTerminal *terminal, + gboolean rewrap) _VTE_GNUC_NONNULL(1); +_VTE_DEPRECATED +_VTE_PUBLIC +gboolean vte_terminal_get_rewrap_on_resize(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); + G_END_DECLS #undef _VTE_DEPRECATED diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h index 26ac236e..db82d9e4 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h @@ -242,11 +242,6 @@ void vte_terminal_set_scroll_on_keystroke(VteTerminal *terminal, gboolean scroll); _VTE_PUBLIC gboolean vte_terminal_get_scroll_on_keystroke(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); -_VTE_PUBLIC -void vte_terminal_set_rewrap_on_resize(VteTerminal *terminal, - gboolean rewrap) _VTE_GNUC_NONNULL(1); -_VTE_PUBLIC -gboolean vte_terminal_get_rewrap_on_resize(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); /* Set the color scheme. */ _VTE_PUBLIC diff --git a/src/vtegtk.cc b/src/vtegtk.cc index f8f296b9..aab8e20d 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc @@ -1628,6 +1628,8 @@ vte_terminal_class_init(VteTerminalClass *klass) * * Controls whether or not the terminal will rewrap its contents, including * the scrollback buffer, whenever the terminal's width changes. + * + * Deprecated: 0.58 */ pspecs[PROP_REWRAP_ON_RESIZE] = g_param_spec_boolean ("rewrap-on-resize", NULL, NULL, @@ -4143,6 +4145,8 @@ vte_terminal_get_pty(VteTerminal *terminal) * Checks whether or not the terminal will rewrap its contents upon resize. * * Returns: %TRUE if rewrapping is enabled, %FALSE if not + * + * Deprecated: 0.58 */ gboolean vte_terminal_get_rewrap_on_resize(VteTerminal *terminal) @@ -4158,6 +4162,8 @@ vte_terminal_get_rewrap_on_resize(VteTerminal *terminal) * * Controls whether or not the terminal will rewrap its contents, including * the scrollback history, whenever the terminal's width changes. + * + * Deprecated: 0.58 */ void vte_terminal_set_rewrap_on_resize(VteTerminal *terminal, |