From 59e692ee5a119653d8743dcd7e066800a56cb9ff Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 Jan 2006 16:14:49 +0000 Subject: pango/Makefile.am, pango/fonts.c, pango/glyphstring.c, 2006-01-05 Behdad Esfahbod * pango/Makefile.am, * pango/fonts.c, * pango/glyphstring.c, * pango/pango-attributes.c, * pango/pango-color.c, * pango/pango-impl-utils.h, * pango/pango-item.c, * pango/pango-layout.c, * pango/pango-tabs.c, * pango/pango-utils.c, * pango/pango-utils.h, * pango/pangoatsui-fontmap.c, * pango/pangocairo-font.c, * pango/pangocairo-fontmap.c, * pango/pangofc-fontmap.c, * pango/pangowin32-fontmap.c, * pango/pangox-fontmap.c, * pango/pangox.c, * pango/opentype/pango-ot-info.c, * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid unnecessary strdups in the type system. (bug #325832, Matthias Clasen) --- pango/pango-attributes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pango/pango-attributes.c') diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index 160dcbc8..6c851f1e 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -848,7 +848,7 @@ pango_attr_shape_copy (const PangoAttribute *attr) static void pango_attr_shape_destroy (PangoAttribute *attr) { - const PangoAttrShape *shape_attr = (PangoAttrShape *)attr; + PangoAttrShape *shape_attr = (PangoAttrShape *)attr; if (shape_attr->destroy_func) shape_attr->destroy_func (shape_attr->data); @@ -952,7 +952,7 @@ pango_attr_list_get_type (void) static GType our_type = 0; if (our_type == 0) - our_type = g_boxed_type_register_static ("PangoAttrList", + our_type = g_boxed_type_register_static (I_("PangoAttrList"), (GBoxedCopyFunc) pango_attr_list_copy, (GBoxedFreeFunc) pango_attr_list_unref); -- cgit v1.2.1