Skip to content

Commit

Permalink
Secondary text on palettes should respect the max width - Fixes #4862
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
godiard committed Jun 19, 2015
1 parent 5d0e06f commit 034706a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sugar3/graphics/palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def set_secondary_text(self, label):
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:
Expand Down

0 comments on commit 034706a

Please sign in to comment.