summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-04-30 03:19:24 +0100
committerJavier Jardón <jjardon@gnome.org>2011-04-30 12:48:07 +0100
commitcf183c9ed22d0f906deb584a9ea4959881d9795f (patch)
tree5d213da6c99df45c607986833e3963a5591c42d0
parent9a2a18ddd107370adbe4194e19cda136c1e507f4 (diff)
downloadpango-cf183c9ed22d0f906deb584a9ea4959881d9795f.tar.gz
Use G_DEFINE_INTERFACE in PangoCairoFontMap
-rw-r--r--pango/pangocairo-fontmap.c32
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)
+{
}
/**