summaryrefslogtreecommitdiff
path: root/pango/pango-layout.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/pango-layout.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/pango-layout.c')
-rw-r--r--pango/pango-layout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 7b2d73ef..d49e5f64 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -232,7 +232,7 @@ pango_layout_finalize (GObject *object)
pango_layout_clear_lines (layout);
if (layout->context)
- g_object_unref (G_OBJECT (layout->context));
+ g_object_unref (layout->context);
if (layout->attrs)
pango_attr_list_unref (layout->attrs);
@@ -268,7 +268,7 @@ pango_layout_new (PangoContext *context)
layout = PANGO_LAYOUT (g_type_create_instance (pango_layout_get_type ()));
layout->context = context;
- g_object_ref (G_OBJECT (context));
+ g_object_ref (context);
return layout;
}
@@ -3457,7 +3457,7 @@ pango_layout_line_get_empty_extents (PangoLayoutLine *line,
logical_rect->y = - pango_font_metrics_get_ascent (metrics);
logical_rect->height = - logical_rect->y + pango_font_metrics_get_descent (metrics);
- g_object_unref (G_OBJECT (font));
+ g_object_unref (font);
pango_font_metrics_unref (metrics);
}
else
@@ -4003,7 +4003,7 @@ pango_layout_get_iter (PangoLayout *layout)
iter = g_new (PangoLayoutIter, 1);
iter->layout = layout;
- g_object_ref (G_OBJECT (iter->layout));
+ g_object_ref (iter->layout);
pango_layout_check_lines (layout);
@@ -4045,7 +4045,7 @@ pango_layout_iter_free (PangoLayoutIter *iter)
g_slist_foreach (iter->line_extents, (GFunc) g_free, NULL);
g_slist_free (iter->line_extents);
pango_layout_line_unref (iter->line);
- g_object_unref (G_OBJECT (iter->layout));
+ g_object_unref (iter->layout);
g_free (iter);
}