summaryrefslogtreecommitdiff
path: root/pango/testfonts.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/testfonts.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/testfonts.c')
-rw-r--r--pango/testfonts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/testfonts.c b/pango/testfonts.c
index d49e986f..94f81d6d 100644
--- a/pango/testfonts.c
+++ b/pango/testfonts.c
@@ -125,7 +125,7 @@ int main (int argc, char **argv)
pango_coverage_unref (coverage);
pango_font_description_free (desc);
- g_object_unref (G_OBJECT (font));
+ g_object_unref (font);
}
pango_font_map_list_families (fontmap, &families, &nb);
@@ -208,7 +208,7 @@ int main (int argc, char **argv)
item = pango_item_new ();
item->analysis.shape_engine = pango_font_find_shaper (font, lang, s[0]);
- item->analysis.font = g_object_ref (G_OBJECT (font));
+ item->analysis.font = g_object_ref (font);
pango_shape ( s, sizeof(s), &(item->analysis), glyphs);
if (hdc)
@@ -237,7 +237,7 @@ int main (int argc, char **argv)
pango_item_free (item);
pango_coverage_unref (coverage);
- g_object_unref (G_OBJECT (font));
+ g_object_unref (font);
}
pango_font_description_free (desc);
}