diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-04-30 03:19:24 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-04-30 12:48:07 +0100 |
commit | cf183c9ed22d0f906deb584a9ea4959881d9795f (patch) | |
tree | 5d213da6c99df45c607986833e3963a5591c42d0 /pango | |
parent | 9a2a18ddd107370adbe4194e19cda136c1e507f4 (diff) | |
download | pango-cf183c9ed22d0f906deb584a9ea4959881d9795f.tar.gz |
Use G_DEFINE_INTERFACE in PangoCairoFontMap
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangocairo-fontmap.c | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c index efb8a908..fb4377ff 100644 --- a/pango/pangocairo-fontmap.c +++ b/pango/pangocairo-fontmap.c @@ -39,35 +39,13 @@ # include "pangocairo-fc.h" #endif -GType -pango_cairo_font_map_get_type (void) -{ - static GType cairo_font_map_type = 0; - - if (! cairo_font_map_type) - { - const GTypeInfo cairo_font_map_info = - { - sizeof (PangoCairoFontMapIface), /* class_size */ - NULL, /* base_init */ - NULL, /* base_finalize */ - NULL, - NULL, /* class_finalize */ - NULL, /* class_data */ - 0, - 0, - NULL, - NULL - }; - cairo_font_map_type = - g_type_register_static (G_TYPE_INTERFACE, I_("PangoCairoFontMap"), - &cairo_font_map_info, 0); +typedef PangoCairoFontMapIface PangoCairoFontMapInterface; +G_DEFINE_INTERFACE (PangoCairoFontMap, pango_cairo_font_map, PANGO_TYPE_FONT_MAP) - g_type_interface_add_prerequisite (cairo_font_map_type, PANGO_TYPE_FONT_MAP); - } - - return cairo_font_map_type; +static void +pango_cairo_font_map_default_init (PangoCairoFontMapIface *iface) +{ } /** |