[pango] pango/pango-renderer.c: parent_class is already defined in G_DEFINE_ABSTRACT_TYPE
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] pango/pango-renderer.c: parent_class is already defined in G_DEFINE_ABSTRACT_TYPE
- Date: Sat, 30 Apr 2011 12:04:18 +0000 (UTC)
commit e250030b45c7744e23fcd5c78aa916f1b4f4aee1
Author: Javier Jardón <jjardon gnome org>
Date: Sat Apr 30 11:55:55 2011 +0100
pango/pango-renderer.c: parent_class is already defined in G_DEFINE_ABSTRACT_TYPE
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 5d42fb9..de3f020 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]