summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r--pango/pango-renderer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index f82c4e48..00f90818 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -106,7 +106,8 @@ to_device (PangoMatrix *matrix,
}
}
-G_DEFINE_ABSTRACT_TYPE (PangoRenderer, pango_renderer, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (PangoRenderer, pango_renderer, G_TYPE_OBJECT,
+ G_ADD_PRIVATE (PangoRenderer))
static void
pango_renderer_class_init (PangoRendererClass *klass)
@@ -120,16 +121,12 @@ pango_renderer_class_init (PangoRendererClass *klass)
klass->prepare_run = pango_renderer_default_prepare_run;
gobject_class->finalize = pango_renderer_finalize;
-
- g_type_class_add_private (gobject_class, sizeof (PangoRendererPrivate));
}
static void
pango_renderer_init (PangoRenderer *renderer)
{
- renderer->priv = G_TYPE_INSTANCE_GET_PRIVATE (renderer,
- PANGO_TYPE_RENDERER,
- PangoRendererPrivate);
+ renderer->priv = pango_renderer_get_instance_private (renderer);
renderer->matrix = NULL;
}