After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663994 - GtkTextView no longer reports the correct line text to ATs when text wraps
GtkTextView no longer reports the correct line text to ATs when text wraps
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 661627 (view as bug list)
Depends on:
Blocks: 661627
 
 
Reported: 2011-11-14 00:20 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2011-12-13 21:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test script (483 bytes, text/x-python)
2011-11-14 00:20 UTC, Joanmarie Diggs (IRC: joanie)
  Details
GtkTextViewAccessible: Respect display lines (5.50 KB, patch)
2011-11-15 05:25 UTC, Matthias Clasen
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2011-11-14 00:20:43 UTC
Created attachment 201333 [details]
test script

Steps to reproduce:

1. Launch the attached text script in a terminal
2. Launch gtk3-demo and start the hypertext demo
3. Resize the window so that the demo text wraps onto the 2nd line
4. Arrow between the two lines

Expected results: The text reported as the current line would only contain the text on the line to which the caret moved.

Actual results: The text reported as the current line is all of the text in the hypertext demo.

Note: This is a regression. If you repeat the test using gtk-demo (i.e. Gtk+ v2), things work as expected.
Comment 1 Hammer Attila 2011-11-14 11:06:30 UTC
I confirm this issue.
If I check for example in Gedit preference the wordwrap related check box, I expecting equals result.
If for example my developed application setting the wordwrap property with true value the gtkTextview widget, expecting equals issue.
If the wordwrap property is false, this issue not happening my own developed application.

Attila
Comment 2 Matthias Clasen 2011-11-15 05:25:35 UTC
The following fix has been pushed:
4904a2f GtkTextViewAccessible: Respect display lines
Comment 3 Matthias Clasen 2011-11-15 05:25:38 UTC
Created attachment 201420 [details] [review]
GtkTextViewAccessible: Respect display lines

This special tweak was lost when porting from GailTextUtil.
Comment 4 Joanmarie Diggs (IRC: joanie) 2011-12-13 21:56:48 UTC
*** Bug 661627 has been marked as a duplicate of this bug. ***