[Pkg-sugar-commit] [sugar-toolkit-gtk3] 01/09: Secondary text on palettes should respect the max width - Fixes #4862

Jonas Smedegaard dr at jones.dk
Thu Jul 2 22:58:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v0.105.3
in repository sugar-toolkit-gtk3.

commit 034706a482deef3db5e8a93b232882af3224016c
Author: Gonzalo Odiard <godiard at gmail.com>
Date:   Fri Jun 19 08:37:36 2015 -0300

    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 ef29bdc..d43247a 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:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-toolkit-gtk3.git



More information about the pkg-sugar-commit mailing list