[pango/pango2: 47/301] Stop exporting some utilities




commit 81fbb2260402b283bb3f010f53968c398ca4d211
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 12 15:02:43 2022 -0500

    Stop exporting some utilities
    
    These are just for our internal use.

 pango/pango-font-description.c |  2 +-
 pango/pango-utils-internal.h   | 18 ++++++++++++++++++
 pango/pango-utils.h            | 31 -------------------------------
 3 files changed, 19 insertions(+), 32 deletions(-)
---
diff --git a/pango/pango-font-description.c b/pango/pango-font-description.c
index cdee3b984..ca99b56af 100644
--- a/pango/pango-font-description.c
+++ b/pango/pango-font-description.c
@@ -23,7 +23,7 @@
 
 #include "pango-font-description-private.h"
 
-#include "pango-utils.h"
+#include "pango-utils-internal.h"
 
 
 struct _PangoFontDescription
diff --git a/pango/pango-utils-internal.h b/pango/pango-utils-internal.h
index 904dd08bd..57fe0478a 100644
--- a/pango/pango-utils-internal.h
+++ b/pango/pango-utils-internal.h
@@ -47,6 +47,24 @@ char    *_pango_trim_string             (const char *str);
 PangoDirection  pango_find_base_dir     (const char *text,
                                          int         length);
 
+gboolean pango_parse_style              (const char   *str,
+                                         PangoStyle   *style,
+                                         gboolean      warn);
+gboolean pango_parse_variant            (const char   *str,
+                                         PangoVariant *variant,
+                                         gboolean      warn);
+gboolean pango_parse_weight             (const char   *str,
+                                         PangoWeight  *weight,
+                                         gboolean      warn);
+gboolean pango_parse_stretch            (const char   *str,
+                                         PangoStretch *stretch,
+                                         gboolean      warn);
+
+void     pango_quantize_line_geometry   (int *thickness,
+                                         int *position);
+
+
+
 G_END_DECLS
 
 #endif /* __PANGO_UTILS_H__ */
diff --git a/pango/pango-utils.h b/pango/pango-utils.h
index 36635b12b..ee6800f09 100644
--- a/pango/pango-utils.h
+++ b/pango/pango-utils.h
@@ -28,37 +28,6 @@
 
 G_BEGIN_DECLS
 
-/* Functions for parsing textual representations
- * of PangoFontDescription fields. They return TRUE if the input string
- * contains a valid value, which then has been assigned to the corresponding
- * field in the PangoFontDescription. If the warn parameter is TRUE,
- * a warning is printed (with g_warning) if the string does not
- * contain a valid value.
- */
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_style   (const char   *str,
-                             PangoStyle   *style,
-                             gboolean      warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_variant (const char   *str,
-                             PangoVariant *variant,
-                             gboolean      warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_weight  (const char   *str,
-                             PangoWeight  *weight,
-                             gboolean      warn);
-PANGO_AVAILABLE_IN_ALL
-gboolean pango_parse_stretch (const char   *str,
-                             PangoStretch *stretch,
-                             gboolean      warn);
-
-
-/* Hint line position and thickness.
- */
-PANGO_AVAILABLE_IN_1_12
-void pango_quantize_line_geometry (int *thickness,
-                                  int *position);
-
 /* A routine from fribidi that we either wrap or provide ourselves.
  */
 PANGO_AVAILABLE_IN_1_4


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