[vte] widget: Deprecate vte_terminal_feed_child_binary
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Deprecate vte_terminal_feed_child_binary
- Date: Sun, 17 Nov 2019 20:58:30 +0000 (UTC)
commit 83cbe9998aa1c2babbf32eed0b5fa3909360a83b
Author: Christian Persch <chpe src gnome org>
Date: Sun Nov 17 21:58:09 2019 +0100
widget: Deprecate vte_terminal_feed_child_binary
doc/reference/vte-sections.txt | 2 +-
src/vte/vtedeprecated.h | 6 ++++++
src/vte/vteterminal.h | 4 ----
src/vtegtk.cc | 6 +++++-
4 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 8b67f283..ad3d203d 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -12,7 +12,6 @@ VteSelectionFunc
vte_terminal_new
vte_terminal_feed
vte_terminal_feed_child
-vte_terminal_feed_child_binary
vte_terminal_select_all
vte_terminal_unselect_all
vte_terminal_copy_clipboard_format
@@ -155,6 +154,7 @@ vte_terminal_get_encoding
vte_terminal_get_text_include_trailing_spaces
vte_terminal_set_rewrap_on_resize
vte_terminal_get_rewrap_on_resize
+vte_terminal_feed_child_binary
<SUBSECTION Private>
VteCharAttributes
diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h
index 1f063767..0b4b3c6a 100644
--- a/src/vte/vtedeprecated.h
+++ b/src/vte/vtedeprecated.h
@@ -148,6 +148,12 @@ _VTE_DEPRECATED
_VTE_PUBLIC
gboolean vte_terminal_get_allow_bold(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
+_VTE_DEPRECATED
+_VTE_PUBLIC
+void vte_terminal_feed_child_binary(VteTerminal *terminal,
+ const guint8 *data,
+ gsize length) _VTE_GNUC_NONNULL(1);
+
G_END_DECLS
#undef _VTE_DEPRECATED
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index cf02367d..31012518 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -170,10 +170,6 @@ _VTE_PUBLIC
void vte_terminal_feed_child(VteTerminal *terminal,
const char *text,
gssize length) _VTE_GNUC_NONNULL(1);
-_VTE_PUBLIC
-void vte_terminal_feed_child_binary(VteTerminal *terminal,
- const guint8 *data,
- gsize length) _VTE_GNUC_NONNULL(1);
/* Copy currently-selected text to the clipboard, or from the clipboard to
* the terminal. */
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 1f749233..352e5c54 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -63,6 +63,7 @@
#endif
#define I_(string) (g_intern_static_string(string))
+#define _VTE_PARAM_DEPRECATED (_vte_debug_on(VTE_DEBUG_SIGNALS) ? G_PARAM_DEPRECATED : 0)
#define VTE_TERMINAL_CSS_NAME "vte-terminal"
@@ -1594,7 +1595,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
pspecs[PROP_ENCODING] =
g_param_spec_string ("encoding", NULL, NULL,
NULL,
- (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY));
+ (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY | _VTE_PARAM_DEPRECATED));
/**
* VteTerminal:font-desc:
@@ -2943,6 +2944,9 @@ vte_terminal_feed_child(VteTerminal *terminal,
* @length: length of @data
*
* Sends a block of binary data to the child.
+ *
+ * Deprecated: 0.60: Don't send binary data. Use vte_terminal_feed_child() instead to send
+ * UTF-8 text
*/
void
vte_terminal_feed_child_binary(VteTerminal *terminal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]