2007-01-16 Behdad Esfahbod <behdad@gnome.org>
Bug 397337 – Use is_ellipsized and is_wrapped to optimize property
changes
* pango/pango-layout.c (pango_layout_set_wrap),
(pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped,
only clear lines if wrap/ellipsize change has any effect on the lines.
svn path=/trunk/; revision=2168
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
+ Bug 397337 – Use is_ellipsized and is_wrapped to optimize property
+ changes
+
+ * pango/pango-layout.c (pango_layout_set_wrap),
+ (pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped,
+ only clear lines if wrap/ellipsize change has any effect on the lines.
+
+2007-01-16 Behdad Esfahbod <behdad@gnome.org>
+
*.c, *.h: Removed spaces followed b tabs.
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
if (layout->wrap != wrap)
{
- pango_layout_clear_lines (layout);
layout->wrap = wrap;
+
+ if (layout->is_wrapped)
+ pango_layout_clear_lines (layout);
}
}
{
layout->ellipsize = ellipsize;
- pango_layout_clear_lines (layout);
+ if (layout->is_ellipsized || layout->is_wrapped)
+ pango_layout_clear_lines (layout);
}
}