diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-04-30 11:55:55 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-04-30 12:59:14 +0100 |
commit | e250030b45c7744e23fcd5c78aa916f1b4f4aee1 (patch) | |
tree | 867194b55538976bd9b963ec53b8dd356be1d98c /pango/pango-renderer.c | |
parent | c8aed76aefe5b2dc81420cf9498df831ff2a0d65 (diff) | |
download | pango-e250030b45c7744e23fcd5c78aa916f1b4f4aee1.tar.gz |
pango/pango-renderer.c: parent_class is already defined in G_DEFINE_ABSTRACT_TYPE
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r-- | pango/pango-renderer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c index 5d42fb9b..de3f0204 100644 --- a/pango/pango-renderer.c +++ b/pango/pango-renderer.c @@ -106,15 +106,11 @@ to_device (PangoMatrix *matrix, G_DEFINE_ABSTRACT_TYPE (PangoRenderer, pango_renderer, G_TYPE_OBJECT) -static GObjectClass *parent_class; - static void pango_renderer_class_init (PangoRendererClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (klass)); - klass->draw_glyphs = pango_renderer_default_draw_glyphs; klass->draw_glyph_item = pango_renderer_default_draw_glyph_item; klass->draw_rectangle = pango_renderer_default_draw_rectangle; @@ -143,7 +139,7 @@ pango_renderer_finalize (GObject *gobject) if (renderer->matrix) pango_matrix_free (renderer->matrix); - parent_class->finalize (gobject); + G_OBJECT_CLASS (pango_renderer_parent_class)->finalize (gobject); } /** |