[vte/vte-next: 25/223] Remove deprecated vte_terminal_set_font_from_string_full



commit 6b8675bb3258053b6c5e4e3f96d59a9c938c5dfc
Author: Christian Persch <chpe gnome org>
Date:   Mon May 2 21:41:00 2011 +0200

    Remove deprecated vte_terminal_set_font_from_string_full

 doc/reference/vte-sections.txt |    1 -
 src/vte.c                      |   47 +++++++--------------------------------
 src/vtedeprecated.h            |    4 ---
 3 files changed, 9 insertions(+), 43 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index f7b6cec..96b1513 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -58,7 +58,6 @@ vte_terminal_set_cursor_blink_mode
 vte_terminal_set_scrollback_lines
 vte_terminal_set_font
 vte_terminal_set_font_from_string
-vte_terminal_set_font_from_string_full
 vte_terminal_get_font
 vte_terminal_get_has_selection
 vte_terminal_set_word_chars
diff --git a/src/vte.c b/src/vte.c
index f0aae72..39a43c1 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7352,40 +7352,6 @@ vte_terminal_set_font(VteTerminal *terminal,
         g_object_thaw_notify(object);
 }
 
-static void
-vte_terminal_set_font_from_string_full_internal(VteTerminal *terminal,
-                                                const char *name,
-                                                VteTerminalAntiAlias antialias)
-{
-	PangoFontDescription *font_desc = NULL;
-	g_return_if_fail(VTE_IS_TERMINAL(terminal));
-
-	if (name)
-	  font_desc = pango_font_description_from_string(name);
-	vte_terminal_set_font(terminal, font_desc);
-	pango_font_description_free(font_desc);
-}
-
-/**
- * vte_terminal_set_font_from_string_full:
- * @terminal: a #VteTerminal
- * @name: A string describing the font.
- * @antialias: Whether or not to antialias the font (if possible).
- *
- * A convenience function which converts @name into a #PangoFontDescription and
- * passes it to vte_terminal_set_font_full().
- *
- * Since: 0.11.11
- *
- * Deprecated: 0.20: Use vte_terminal_set_font()
- */
-void
-vte_terminal_set_font_from_string_full(VteTerminal *terminal, const char *name,
-				       VteTerminalAntiAlias antialias)
-{
-        vte_terminal_set_font_from_string_full_internal(terminal, name, antialias);
-}
-
 /**
  * vte_terminal_set_font_from_string:
  * @terminal: a #VteTerminal
@@ -7395,12 +7361,17 @@ vte_terminal_set_font_from_string_full(VteTerminal *terminal, const char *name,
  * passes it to vte_terminal_set_font().
  */
 void
-vte_terminal_set_font_from_string(VteTerminal *terminal, const char *name)
+vte_terminal_set_font_from_string(VteTerminal *terminal,
+                                  const char *name)
 {
+	PangoFontDescription *font_desc = NULL;
 	g_return_if_fail(VTE_IS_TERMINAL(terminal));
-	g_return_if_fail(name != NULL);
-	vte_terminal_set_font_from_string_full_internal(terminal, name,
-                                                        VTE_ANTI_ALIAS_USE_DEFAULT);
+        g_return_if_fail(name != NULL);
+
+	if (name)
+                font_desc = pango_font_description_from_string(name);
+	vte_terminal_set_font(terminal, font_desc);
+	pango_font_description_free(font_desc);
 }
 
 /**
diff --git a/src/vtedeprecated.h b/src/vtedeprecated.h
index a5f549a..5f10cc6 100644
--- a/src/vtedeprecated.h
+++ b/src/vtedeprecated.h
@@ -45,10 +45,6 @@ typedef enum {
 	VTE_ANTI_ALIAS_FORCE_DISABLE
 } VteTerminalAntiAlias;
 
-void vte_terminal_set_font_from_string_full(VteTerminal *terminal,
-					    const char *name,
-					    VteTerminalAntiAlias antialias) G_GNUC_DEPRECATED;
-
 G_END_DECLS
 
 #endif /* !vte_deprecated_h_included */



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