summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-12-24 00:43:48 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-12-24 02:01:05 -0500
commitebf371b645313803444b6f650e0d8cb226ecd589 (patch)
tree3d2349837f091e310791c3c85664f1750a1504f2
parentf06559ee47341d462bd5f1d8a3fa1ecd2babde9c (diff)
downloadpango-fontset-cosmetics.tar.gz
fontsetsimple: Make privately accessiblefontset-cosmetics
This will be used in the future
-rw-r--r--pango/pango-fontset-simple-private.h44
-rw-r--r--pango/pango-fontset-simple.c15
2 files changed, 45 insertions, 14 deletions
diff --git a/pango/pango-fontset-simple-private.h b/pango/pango-fontset-simple-private.h
new file mode 100644
index 00000000..4e9ff826
--- /dev/null
+++ b/pango/pango-fontset-simple-private.h
@@ -0,0 +1,44 @@
+/* Pango
+ * pango-fontset-simple-private.h: Font handling
+ *
+ * Copyright (C) 2000 Red Hat Software
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PANGO_FONTSET_SIMPLE_PRIVATE_H__
+#define __PANGO_FONTSET_SIMPLE_PRIVATE_H__
+
+#include <pango/pango-fontset-simple.h>
+
+G_BEGIN_DECLS
+
+struct _PangoFontsetSimple
+{
+ PangoFontset parent_instance;
+
+ GPtrArray *fonts;
+ PangoLanguage *language;
+};
+
+struct _PangoFontsetSimpleClass
+{
+ PangoFontsetClass parent_class;
+};
+
+G_END_DECLS
+
+#endif /* __PANGO_FONTSET_SIMPLE_PRIVATE_H__ */
diff --git a/pango/pango-fontset-simple.c b/pango/pango-fontset-simple.c
index a499693f..83d6982c 100644
--- a/pango/pango-fontset-simple.c
+++ b/pango/pango-fontset-simple.c
@@ -27,7 +27,7 @@
#include "pango-types.h"
#include "pango-font-private.h"
-#include "pango-fontset-simple.h"
+#include "pango-fontset-simple-private.h"
#include "pango-impl-utils.h"
/* {{{ PangoFontset implementation */
@@ -37,19 +37,6 @@
#define PANGO_FONTSET_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONTSET_SIMPLE, PangoFontsetSimpleClass))
-struct _PangoFontsetSimple
-{
- PangoFontset parent_instance;
-
- GPtrArray *fonts;
- PangoLanguage *language;
-};
-
-struct _PangoFontsetSimpleClass
-{
- PangoFontsetClass parent_class;
-};
-
G_DEFINE_TYPE (PangoFontsetSimple, pango_fontset_simple, PANGO_TYPE_FONTSET);
static void