From 82ca7db41353050b4bef92e568f8aa444cccdac5 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Tue, 23 Jun 2009 15:49:51 +0200 Subject: [PATCH] [AdgFontStyle] Removed PARENT_CLASS define --- adg/adg-font-style.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/adg/adg-font-style.c b/adg/adg-font-style.c index 1ee36d32..1c748960 100644 --- a/adg/adg-font-style.c +++ b/adg/adg-font-style.c @@ -32,8 +32,6 @@ #include "adg-intl.h" #include "adg-util.h" -#define PARENT_CLASS ((AdgStyleClass *) adg_font_style_parent_class) - enum { PROP_0, @@ -578,16 +576,19 @@ static void apply(AdgStyle *style, cairo_t *cr) { AdgFontStyle *font_style; + AdgStyleClass *style_class; + double size; cairo_font_options_t *options; cairo_matrix_t matrix; - double size; cairo_matrix_t font_matrix; font_style = (AdgFontStyle *) style; + style_class = (AdgStyleClass *) adg_font_style_parent_class; cairo_get_matrix(cr, &matrix); size = font_style->priv->size; - PARENT_CLASS->apply(style, cr); + if (style_class->apply != NULL) + style_class->apply(style, cr); if (font_style->priv->family) cairo_select_font_face(cr, font_style->priv->family, -- 2.11.4.GIT