touchpad/horizontal instructions omit instructions that text wrapping enabled by default in Gedit
Bug #1004212 reported by
Jeff Marcom
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Low
|
Unassigned |
Bug Description
Usability bug:
Test: touchpad/horizontal
Default text inside test Gedit sample wraps by default thus redering the horizontal scrolling useless.
Instruction set needs to include the following:
1.) Before attempting to scroll through text displayed in Gedit go to edit -> preferences.
2.) This should open the Gedit preferences window. From here select the View tab and make sure "Enable text wrapping" is not selected.
Checkbox build: 13.1
Related branches
Changed in checkbox: | |
status: | New → Invalid |
summary: |
- touchpad/horizontal instructions omit instructions that word wrap is not - enabled by default + touchpad/horizontal instructions omit instructions that text wrapping + enabled by default in Gedit |
description: | updated |
Changed in checkbox: | |
status: | Invalid → New |
Changed in checkbox: | |
status: | New → Triaged |
importance: | Undecided → Low |
milestone: | none → 0.14 |
To post a comment you must log in.
Automation is preferred whenever possible. Thus, instead of working around this by asking the human to set wrapping modes manually, I can suggest two options.
Looking at scripts/ touchpad. py, I notice a function called gedit_wrap_none, which should take care of setting wrapping to a sane value. However it seems to use the old gconf API:
import gconf get_string( '/apps/ gedit-2/ preferences/ editor'
' /wrap_mode/ wrap_mode' )
wrap_mode = client.
this returns nothing, whereas it should return 'word' (the wrapping mode I have set up on my system).
Instead, this should probably use the new GSettings API (and GObject introspection, baby!):
from gi.repository import Gio
gedit_settings = Gio.Settings. new("org. gnome.gedit. preferences. editor" ) get_string( 'wrap_mode' ) set_string( 'wrap_mode' ,'none' )
wrap_mode = gedit_settings.
gedit_settings.
SInce the test needs to be reworked, the second alternative I may suggest is to use a simple Gtk app that presents a ScrolledWindow with a TextView inside. This is not much more complicated than fixing the current test (at 61 lines, and the Gtk app implementation is a bit over 70 lines) and may be easier to port/extend in the future.
I'll attach a bzr branch with the Gtk app and we can decide which solution is best.