From 034706a482deef3db5e8a93b232882af3224016c Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 19 Jun 2015 08:37:36 -0300 Subject: [PATCH] Secondary text on palettes should respect the max width - Fixes #4862 When a activity have a title very long without spaces, the text can't be wraped with the default wrap mode (WORD) Use WRAP_CHAR to solve this issue. --- src/sugar3/graphics/palette.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sugar3/graphics/palette.py b/src/sugar3/graphics/palette.py index ef29bdc8..d43247aa 100644 --- a/src/sugar3/graphics/palette.py +++ b/src/sugar3/graphics/palette.py @@ -286,6 +286,7 @@ class Palette(PaletteWindow): self._secondary_label.set_line_wrap(True) self._secondary_label.set_ellipsize( style.ELLIPSIZE_MODE_DEFAULT) + self._secondary_label.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) self._secondary_label.set_lines(NO_OF_LINES) self._secondary_label.set_justify(Gtk.Justification.FILL) else: