Activity Toolbar Description input field wrap text, SL #3586

Signed-off-by: Gary C. Martin <garycmartin@googlemail.com
Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
Simon Schampijer 2012-06-01 19:32:51 +02:00
parent 1beb8757c1
commit 433c6391ec

View File

@ -234,6 +234,7 @@ class DescriptionItem(Gtk.ToolItem):
self._text_view = Gtk.TextView()
self._text_view.set_left_margin(style.DEFAULT_PADDING)
self._text_view.set_right_margin(style.DEFAULT_PADDING)
self._text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
text_buffer = Gtk.TextBuffer()
if 'description' in activity.metadata:
text_buffer.set_text(activity.metadata['description'])