summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-14 22:50:48 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-14 22:50:48 +0000
commitd038fdbce6ea8f38b7998b298dc6daf8cf0d9d05 (patch)
treea80fdf5aaad5d9a63d370c1fe553f400939d7bcc /pango/pangoxft-font.c
parent347ccb30f3c8c3b029202952ccb133db70f4046f (diff)
downloadpango-d038fdbce6ea8f38b7998b298dc6daf8cf0d9d05.tar.gz
Get rid of unnecessary casts for g_object_{ref,unref}
Mon Oct 14 15:39:41 2002 Manish Singh <yosh@gimp.org> * pango/pango-context.c pango/pango-layout.c pango/pangoft2.c pango/pangowin32-fontmap.c pango/pangowin32.c pango/pangox-fontmap.c pango/pangox.c pango/pangoxft-font.c pango/pangoxft-fontmap.c pango/testfonts.c pango/opentype/pango-ot-ruleset.c: Get rid of unnecessary casts for g_object_{ref,unref}
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index 690469f2..47eb2ec9 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -138,7 +138,7 @@ _pango_xft_font_new (PangoFontMap *fontmap,
xfont->fontmap = fontmap;
xfont->font_pattern = pattern;
- g_object_ref (G_OBJECT (fontmap));
+ g_object_ref (fontmap);
xfont->description = _pango_xft_font_desc_from_pattern (pattern, TRUE);
xfont->xft_font = NULL;
@@ -480,8 +480,8 @@ pango_xft_font_get_metrics (PangoFont *font,
info->metrics->approximate_digit_width = extents.width / 10;
- g_object_unref (G_OBJECT (layout));
- g_object_unref (G_OBJECT (context));
+ g_object_unref (layout);
+ g_object_unref (context);
}
}