diff options
author | Tor Lillqvist <tml@iki.fi> | 2004-08-06 01:45:46 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2004-08-06 01:45:46 +0000 |
commit | 35adf5a98dee743082a5b0a9467ce92ff450f4b9 (patch) | |
tree | 2f9a54dd54e4ce62ffd5a0df5a19f58434cdc303 /pango | |
parent | b22cd6142b21b133e56e32ee1c8fa5d30e08f234 (diff) | |
download | pango-35adf5a98dee743082a5b0a9467ce92ff450f4b9.tar.gz |
Typedef PangoWin32FontMapClass.
2004-08-06 Tor Lillqvist <tml@iki.fi>
* pango/pangowin32-fontmap.c: Typedef PangoWin32FontMapClass.
(pango_win32_font_map_class_init): Match what G_DEFINE_TYPE
generates.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangowin32-fontmap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 8d462ad0..09be6be0 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -38,6 +38,7 @@ #define PANGO_WIN32_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_WIN32_FONT_MAP)) typedef struct _PangoWin32FontMap PangoWin32FontMap; +typedef struct _PangoWin32FontMapClass PangoWin32FontMapClass; typedef struct _PangoWin32Family PangoWin32Family; typedef struct _PangoWin32SizeInfo PangoWin32SizeInfo; @@ -153,14 +154,15 @@ pango_win32_font_map_init (PangoWin32FontMap *win32fontmap) } static void -pango_win32_font_map_class_init (PangoFontMapClass *class) +pango_win32_font_map_class_init (PangoWin32FontMapClass *class) { GObjectClass *object_class = G_OBJECT_CLASS (class); + PangoFontMapClass *fontmap_class = PANGO_FONT_MAP_CLASS (class); object_class->finalize = pango_win32_font_map_finalize; - class->load_font = pango_win32_font_map_load_font; - class->list_families = pango_win32_font_map_list_families; - class->shape_engine_type = PANGO_RENDER_TYPE_WIN32; + fontmap_class->load_font = pango_win32_font_map_load_font; + fontmap_class->list_families = pango_win32_font_map_list_families; + fontmap_class->shape_engine_type = PANGO_RENDER_TYPE_WIN32; pango_win32_get_dc (); } |