touchpad/horizontal instructions omit instructions that text wrapping enabled by default in Gedit

Bug #1004212 reported by Jeff Marcom on 2012-05-24
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox
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

Jeff Marcom (jeffmarcom) on 2012-05-24
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
Daniel Manrique (roadmr) on 2012-05-24
Changed in checkbox:
status: New → Triaged
importance: Undecided → Low
milestone: none → 0.14
Daniel Manrique (roadmr) wrote :

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
 wrap_mode = client.get_string('/apps/gedit-2/preferences/editor'
                                  '/wrap_mode/wrap_mode')
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")
wrap_mode = gedit_settings.get_string('wrap_mode')
gedit_settings.set_string('wrap_mode','none')

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.

Daniel Manrique (roadmr) wrote :

The new touchpad_test script fixed this a while ago. Marking Fix Released.

Changed in checkbox:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers