From ebf371b645313803444b6f650e0d8cb226ecd589 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 Dec 2021 00:43:48 -0500 Subject: fontsetsimple: Make privately accessible This will be used in the future --- pango/pango-fontset-simple-private.h | 44 ++++++++++++++++++++++++++++++++++++ pango/pango-fontset-simple.c | 15 +----------- 2 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 pango/pango-fontset-simple-private.h 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 + +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 -- cgit v1.2.1