[vte] widget: Deprecate vte_terminal_[sg]et_allow_bold()



commit b524886338ff638f3f732ebe548580f51540d483
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Oct 11 13:47:56 2019 +0200

    widget: Deprecate vte_terminal_[sg]et_allow_bold()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762247#c36

 src/vte/vtedeprecated.h |  8 ++++++++
 src/vte/vteterminal.h   |  5 -----
 src/vtegtk.cc           | 17 ++++++++++-------
 3 files changed, 18 insertions(+), 12 deletions(-)
---
diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h
index f2250931..1f063767 100644
--- a/src/vte/vtedeprecated.h
+++ b/src/vte/vtedeprecated.h
@@ -140,6 +140,14 @@ _VTE_DEPRECATED
 _VTE_PUBLIC
 gboolean vte_terminal_get_rewrap_on_resize(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
 
+_VTE_DEPRECATED
+_VTE_PUBLIC
+void vte_terminal_set_allow_bold(VteTerminal *terminal,
+                                 gboolean allow_bold) _VTE_GNUC_NONNULL(1);
+_VTE_DEPRECATED
+_VTE_PUBLIC
+gboolean vte_terminal_get_allow_bold(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 9d151729..cf02367d 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -302,11 +302,6 @@ void vte_terminal_set_font(VteTerminal *terminal,
                           const PangoFontDescription *font_desc) _VTE_GNUC_NONNULL(1);
 _VTE_PUBLIC
 const PangoFontDescription *vte_terminal_get_font(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
-_VTE_PUBLIC
-void vte_terminal_set_allow_bold(VteTerminal *terminal,
-                                 gboolean allow_bold) _VTE_GNUC_NONNULL(1);
-_VTE_PUBLIC
-gboolean vte_terminal_get_allow_bold(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
 
 _VTE_PUBLIC
 void vte_terminal_set_bold_is_bright(VteTerminal *terminal,
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 27076c9d..fe5d1c41 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -1402,9 +1402,10 @@ vte_terminal_class_init(VteTerminalClass *klass)
         /**
          * VteTerminal:allow-bold:
          *
-         * Controls whether or not the terminal will attempt to draw bold text.
-         * This may happen either by using a bold font variant, or by
-         * repainting text with a different offset.
+         * Controls whether or not the terminal will attempt to draw bold text,
+         * by using a bold font variant.
+         *
+         * Deprecated: 0.60: There's probably no reason for this feature to exist.
          */
         pspecs[PROP_ALLOW_BOLD] =
                 g_param_spec_boolean ("allow-bold", NULL, NULL,
@@ -3146,10 +3147,11 @@ vte_terminal_set_text_blink_mode(VteTerminal *terminal,
  * @terminal: a #VteTerminal
  *
  * Checks whether or not the terminal will attempt to draw bold text,
- * either by using a bold font variant or by repainting text with a different
- * offset.
+ * by using a bold font variant.
  *
  * Returns: %TRUE if bolding is enabled, %FALSE if not
+ *
+ * Deprecated: 0.60: There's probably no reason for this feature to exist.
  */
 gboolean
 vte_terminal_get_allow_bold(VteTerminal *terminal)
@@ -3164,8 +3166,9 @@ vte_terminal_get_allow_bold(VteTerminal *terminal)
  * @allow_bold: %TRUE if the terminal should attempt to draw bold text
  *
  * Controls whether or not the terminal will attempt to draw bold text,
- * either by using a bold font variant or by repainting text with a different
- * offset.
+ * by using a bold font variant.
+ *
+ * Deprecated: 0.60: There's probably no reason for this feature to exist.
  */
 void
 vte_terminal_set_allow_bold(VteTerminal *terminal,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]