diff options
author | Kristian Rietveld <kris@gtk.org> | 2011-07-01 21:08:39 +0200 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2011-07-01 21:08:39 +0200 |
commit | cbc881d42159e9a72e6ed408695f59df1a34513e (patch) | |
tree | 54eb14f06203b2aa9a0494b3ecb8822bb63f159d | |
parent | 3b94f45e5bbd75775e0c4a81c4482f58c943ee18 (diff) | |
download | pango-cbc881d42159e9a72e6ed408695f59df1a34513e.tar.gz |
Make ATSUI backend compile again
Commit 02f80c9acdec53f58fef0e12f41363c3c4ea1efe broke the build and was
likely committed untested.
-rw-r--r-- | pango/pangoatsui-fontmap.c | 8 | ||||
-rw-r--r-- | pango/pangoatsui-private.h | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/pango/pangoatsui-fontmap.c b/pango/pangoatsui-fontmap.c index 8eb123ae..c169f0df 100644 --- a/pango/pangoatsui-fontmap.c +++ b/pango/pangoatsui-fontmap.c @@ -70,6 +70,8 @@ struct _PangoATSUIFace static GType pango_atsui_family_get_type (void); static GType pango_atsui_face_get_type (void); +static gpointer pango_atsui_face_parent_class; + static const char * get_real_family (const char *family_name) { @@ -200,6 +202,8 @@ pango_atsui_family_is_monospace (PangoFontFamily *family) return atsuifamily->is_monospace; } +G_DEFINE_TYPE (PangoATSUIFamily, pango_atsui_family, PANGO_TYPE_FONT_FAMILY); + static void pango_atsui_family_finalize (GObject *object) { @@ -219,8 +223,6 @@ pango_atsui_family_finalize (GObject *object) G_OBJECT_CLASS (pango_atsui_family_parent_class)->finalize (object); } -G_DEFINE_TYPE (PangoATSUIFamilyClass, pango_atsui_family, PANGO_TYPE_FONT_FAMILY); - static void pango_atsui_family_class_init (PangoATSUIFamilyClass *class) { @@ -337,6 +339,8 @@ pango_atsui_face_class_init (PangoFontFaceClass *class) { GObjectClass *object_class = (GObjectClass *)class; + pango_atsui_face_parent_class = g_type_class_peek_parent (class); + object_class->finalize = pango_atsui_face_finalize; class->describe = pango_atsui_face_describe; diff --git a/pango/pangoatsui-private.h b/pango/pangoatsui-private.h index a5ab0cb7..81bcf60a 100644 --- a/pango/pangoatsui-private.h +++ b/pango/pangoatsui-private.h @@ -38,6 +38,8 @@ G_BEGIN_DECLS typedef struct _PangoATSUIFamily PangoATSUIFamily; +typedef struct _PangoFontFamilyClass PangoATSUIFamilyClass; + typedef struct _PangoATSUIFace PangoATSUIFace; typedef struct _PangoATSUIFontMap PangoATSUIFontMap; |