Ticket #3586 (closed defect: fixed)

Opened 12 months ago

Last modified 12 months ago

Activity Toolbar Description input field should soft wrap text

Reported by: garycmartin Owned by: erikos
Priority: Unspecified by Maintainer Milestone: 0.96
Component: sugar-toolkit Version: 0.96.x
Severity: Unspecified Keywords:
Cc: erikos Distribution/OS: Unspecified
Bug Status: Assigned

Description

When using the new Description feature (Activity toolbar for adding description data to the Journal entry), the input field does not soft wrap to the entry field width so you just endlessly type on one long scrolling line unless you manually insert line feeds. Makes it very hard to read anything but trivial short snippets of text without scrolling left and right to see the rest of the paragraph/sentence.

Change History

Changed 12 months ago by garycmartin

Can be easily fixed by editing sugar/activity/widgets.py and sugar3/activity/widgets.py and adding the below at around line 257:

self._text_view.set_wrap_mode(gtk.WRAP_WORD_CHAR)

This soft wraps the existing text and new text that you type to fit the horizontal width of the text view.

Changed 12 months ago by garycmartin

  • cc erikos added

Changed 12 months ago by garycmartin

Correction, sugar3 uses Gtk and not gtk as well as some other changes, so editing sugar/activity/widgets.py needs:

self._text_view.set_wrap_mode(gtk.WRAP_WORD_CHAR)

... and sugar3/activity/widgets.py needs:

self._text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)

Changed 12 months ago by sascha_silbe

  • component changed from sugar to sugar-toolkit

Changed 12 months ago by garycmartin

  • version changed from Unspecified to 0.96.x

Changed 12 months ago by erikos

  • owner set to erikos
  • status changed from new to assigned
  • status_field changed from Unconfirmed to Assigned
  • milestone changed from Unspecified by Release Team to 0.96

Changed 12 months ago by erikos

  • status changed from assigned to closed
  • resolution set to fixed

Thanks Gary, pushed. Will be in 0.96.2.

Note: See TracTickets for help on using tickets.