Properly fix wrap mode on secondary text for toolbars

This patch solves a bug introduced on:
034706a482

Pep8 fix by Martin Abente Lahaye (reviewer).

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
master
Gonzalo Odiard 9 years ago committed by Martin Abente Lahaye
parent a3946f7c19
commit 9087eab839

@ -28,6 +28,7 @@ from gi.repository import GLib
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GObject
from gi.repository import Pango
from sugar3.graphics import animator
from sugar3.graphics import style
@ -286,7 +287,8 @@ 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_line_wrap_mode(
Pango.WrapMode.WORD_CHAR)
self._secondary_label.set_lines(NO_OF_LINES)
self._secondary_label.set_justify(Gtk.Justification.FILL)
else:

Loading…
Cancel
Save