[clutter] Deprecate clutter_[sg]et_font_flags()



commit 01080dc5f313fb3d191e78c555c1f04d78aaa83a
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Oct 3 14:12:48 2011 +0100

    Deprecate clutter_[sg]et_font_flags()
    
    We already have two mechanisms for controlling the font rendering
    quality on a per-application basis:
    
      â ClutterSettings properties
      â clutter_backend_set_font_options()
    
    The font flags were always a stop-gap solution, and one that tried to
    simplify a fairly complex issue beyond the point of actually being
    useful.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660786

 clutter/clutter-main.c  |    6 ++++++
 clutter/clutter-main.h  |    3 +--
 clutter/clutter-types.h |    2 ++
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index bea2e92..4f0a6c8 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -2846,6 +2846,9 @@ clutter_clear_glyph_cache (void)
  * introduce some artifacts if the text is animated.
  *
  * Since: 1.0
+ *
+ * Deprecated: 1.10: Use clutter_backend_set_font_options() and the
+ *   #cairo_font_option_t API.
  */
 void
 clutter_set_font_flags (ClutterFontFlags flags)
@@ -2897,6 +2900,9 @@ clutter_set_font_flags (ClutterFontFlags flags)
  * Return value: The font flags
  *
  * Since: 1.0
+ *
+ * Deprecated: 1.10: Use clutter_backend_get_font_options() and the
+ *   #cairo_font_options_t API.
  */
 ClutterFontFlags
 clutter_get_font_flags (void)
diff --git a/clutter/clutter-main.h b/clutter/clutter-main.h
index ab85e13..77be12d 100644
--- a/clutter/clutter-main.h
+++ b/clutter/clutter-main.h
@@ -167,10 +167,9 @@ ClutterActor *   clutter_get_keyboard_grab           (void);
 
 #if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
 void             clutter_clear_glyph_cache           (void);
-#endif
-
 void             clutter_set_font_flags              (ClutterFontFlags flags);
 ClutterFontFlags clutter_get_font_flags              (void);
+#endif /* CLUTTER_DISABLE_DEPRECATED */
 
 #if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
 ClutterInputDevice *clutter_get_input_device_for_id  (gint id_);
diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h
index b1ea2e9..6659e08 100644
--- a/clutter/clutter-types.h
+++ b/clutter/clutter-types.h
@@ -429,6 +429,8 @@ typedef enum {
  * clutter_set_font_flags().
  *
  * Since: 1.0
+ *
+ * Deprecated: 1.10: Use the #ClutterBackend and #cairo_font_options_t instead
  */
 typedef enum
 {



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