summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-07-21 19:19:50 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-07-21 19:19:50 +0000
commitebbd946ac65ac1a20a46652b234288280e7ee5fd (patch)
tree93e204b1cc463b5b3d371406b35dc59dc0c1dda4 /pango/pango-context.c
parenta084f42c0e920e2ac91383b8d98ff54f339d17ac (diff)
downloadpango-ebbd946ac65ac1a20a46652b234288280e7ee5fd.tar.gz
A bit of code cleanup.
Fri Jul 21 15:17:26 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_itemize): A bit of code cleanup. * pango/pango-attributes.[ch]: Add a new attribute type PangoAttrShape, for imposing specific shapes on glyphs. This is used for handling embedded pixmaps and similar objects. * pango/pango-layout.c: Hnadle PangoAttrShape. * pango/pango-context.[ch]:
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index cf6d3b42..b1e612fa 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -603,14 +603,14 @@ pango_itemize (PangoContext *context,
if (extra_attr_lists[i] && i != 0 && extra_attr_lists[i] == extra_attr_lists[i-1])
{
GSList *tmp_list = extra_attr_lists[i];
- item->extra_attrs = NULL;
+ GSList *new_list = NULL;
while (tmp_list)
{
- item->extra_attrs = g_slist_prepend (item->extra_attrs,
- pango_attribute_copy (tmp_list->data));
+ new_list = g_slist_prepend (new_list,
+ pango_attribute_copy (tmp_list->data));
tmp_list = tmp_list->next;
}
- item->extra_attrs = g_slist_reverse (item->extra_attrs);
+ item->extra_attrs = g_slist_reverse (new_list);
}
else
item->extra_attrs = extra_attr_lists[i];