diff options
author | Johnny Jacob <johnnyjacob@gmail.com> | 2006-01-11 21:00:19 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-01-11 21:00:19 +0800 |
commit | dcaef2dcba2bf0a41f881832645c84fa566daa60 (patch) | |
tree | 20273be4158ffecb38f0040600077b6e967e0111 /widgets | |
parent | 3e41616a61f4af59d1fc900fa52801086e48033b (diff) | |
download | gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar.gz gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar.bz2 gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar.lz gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar.xz gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.tar.zst gsoc2013-evolution-dcaef2dcba2bf0a41f881832645c84fa566daa60.zip |
Add the width to the pango layout.
2006-01-11 Johnny Jacob <johnnyjacob@gmail.com>
* text/e-text.c (e_text_set_property): Add the width to
the pango layout.
svn path=/trunk/; revision=31138
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/text/e-text.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog index 51038e226c..1acdae8ffb 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -1,3 +1,8 @@ +2006-01-11 Johnny Jacob <johnnyjacob#gmail.com> + + * text/e-text.c (e_text_set_property): Add the width to + the pango layout. + 2006-01-10 Simon Zheng <simon.zheng@sun.com> * menus/gal-view-instance.c: diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 8e39c7e5d2..d5aab1382b 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -758,9 +758,11 @@ e_text_set_property (GObject *object, case PROP_CLIP_WIDTH: text->clip_width = fabs (g_value_get_double (value)); calc_ellipsis (text); - if ( text->line_wrap ) + if ( text->line_wrap ) { + if (text->layout) + pango_layout_set_width (text->layout, text->clip_width < 0 ? -1 : text->clip_width * PANGO_SCALE); text->needs_split_into_lines = 1; - else { + } else { text->needs_calc_height = 1; } needs_reflow = 1; |