[pango/pango2: 40/68] Keep pango_fontset_get_language private




commit 91bade92e2750da57cf5a0347c224ffb4d24c5c6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 12 07:39:57 2022 -0400

    Keep pango_fontset_get_language private
    
    This is just for our own purposes.

 pango/pango-fontset-private.h | 19 +++++++++++--------
 pango/pango-fontset.c         |  2 +-
 pango/pango-fontset.h         |  3 ---
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/pango/pango-fontset-private.h b/pango/pango-fontset-private.h
index af072ad7b..f67bddb03 100644
--- a/pango/pango-fontset-private.h
+++ b/pango/pango-fontset-private.h
@@ -37,12 +37,15 @@ struct _PangoFontsetClass
 {
   GObjectClass parent_class;
 
-  PangoFont *       (*get_font)     (PangoFontset     *fontset,
-                                     guint             wc);
-
-  PangoFontMetrics *(*get_metrics)  (PangoFontset     *fontset);
-  PangoLanguage *   (*get_language) (PangoFontset     *fontset);
-  void              (*foreach)      (PangoFontset           *fontset,
-                                     PangoFontsetForeachFunc func,
-                                     gpointer                data);
+  PangoFont *            (* get_font)      (PangoFontset            *fontset,
+                                            guint                    wc);
+
+  PangoFontMetrics *     (* get_metrics)   (PangoFontset            *fontset);
+  PangoLanguage *        (* get_language)  (PangoFontset            *fontset);
+  void                   (* foreach)       (PangoFontset            *fontset,
+                                            PangoFontsetForeachFunc  func,
+                                            gpointer                 data);
 };
+
+PangoLanguage * pango_fontset_get_language (PangoFontset *fontset);
+
diff --git a/pango/pango-fontset.c b/pango/pango-fontset.c
index fb3bc22c9..fd5af91d5 100644
--- a/pango/pango-fontset.c
+++ b/pango/pango-fontset.c
@@ -92,7 +92,7 @@ pango_fontset_get_metrics (PangoFontset *fontset)
   return PANGO_FONTSET_GET_CLASS (fontset)->get_metrics (fontset);
 }
 
-/**
+/*< private >
  * pango_fontset_get_language:
  * @fontset: a `PangoFontset`
  *
diff --git a/pango/pango-fontset.h b/pango/pango-fontset.h
index 216979336..57beea2e9 100644
--- a/pango/pango-fontset.h
+++ b/pango/pango-fontset.h
@@ -56,8 +56,5 @@ PANGO_AVAILABLE_IN_ALL
 void                    pango_fontset_foreach           (PangoFontset                   *fontset,
                                                          PangoFontsetForeachFunc         func,
                                                          gpointer                        data);
-PANGO_AVAILABLE_IN_ALL
-PangoLanguage *         pango_fontset_get_language      (PangoFontset                   *fontset);
-
 
 G_END_DECLS


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