From 5c8263ecb7e3e942c355a62d36934b6935ebb813 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 21 Apr 2009 11:59:38 +0100 Subject: [PATCH] [text] Limit the Layout width We only want to eschew the pango_layout_set_width() on editable, single-line Text actors because they can "scroll" the PangoLayout. This fixes the ellipsization on entries. --- clutter/clutter-text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index bc04c1e51..b04c7e4fb 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -309,11 +309,11 @@ clutter_text_create_layout_no_cache (ClutterText *text, } } - /* we only limit the layout when in multi-line mode since the - * single line mode will take care of scrolling to accomodate - * the allocation width + /* we do not limit the layout width on editable, single-line + * text actors, since those can scroll the layout */ - if (allocation_width > 0 && !priv->single_line_mode) + if (allocation_width > 0 && + !(priv->editable && priv->single_line_mode)) { gint width;