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 171584 - 'AccessibleTextChangedEvent_getChangeString' does not return the expected values
'AccessibleTextChangedEvent_getChangeString' does not return the expected values
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: javabridge
unspecified
Other Linux
: Normal normal
: ---
Assigned To: bill.haneman
bill.haneman
Depends on:
Blocks:
 
 
Reported: 2005-03-25 12:51 UTC by Alexandra Telescu
Modified: 2005-04-01 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
this is a patch for gnopernicus (1.16 KB, patch)
2005-03-25 13:37 UTC, Alexandra Telescu
reviewed Details | Review

Description Alexandra Telescu 2005-03-25 12:51:47 UTC
1. Run Swing Demo or SwingSet2
2. Go to a edit a single-line or a multi-line text object
3. Verify the values that this function returns for the insert and delete events.

Expected behavior:
The function should return the difference between the current text and the one
before the insert/delete event.

Actual behavior:
The function returns the 'null' value.

This makes gnopernicus to not report the insert/delete event for this type of
single-line and multi-line text objects.
Comment 1 Alexandra Telescu 2005-03-25 13:37:12 UTC
Created attachment 39241 [details] [review]
this is a patch for gnopernicus 

This patch makes gnopernicus to report the changes for the text in case of
'insert' event using the event's details.
In case of 'delete' event I couldn't extract the text that was deleted.
Comment 2 bill.haneman 2005-03-29 11:57:50 UTC
Comment on attachment 39241 [details] [review]
this is a patch for gnopernicus 

I have doubts about how reliable this workaround will be.
Comment 3 bill.haneman 2005-04-01 10:30:52 UTC
copied from comments in bug 171581:

====

------- Additional Comment #8 From bill.haneman@sun.com 2005-03-30 11:19 -------

Try the latest cvs version of java-access-bridge; it also reports text-change
strings in the CORBA_Anys sent from the currently-focussed object.


------- Additional Comment #9 From Oana Serb 2005-03-31 08:58 -------

With the latest version of java-access-bridge, I saw the following in Swing Demo:

- writing a text ('abcdef') in a text box, then deleting it (using 'backspace'
or 'delete') char by char, the deleted text is sometimes null and sometimes has
a wrong value.
- sometimes, when deleting a char from the text box, the 'text-changed:delete'
event is not reported (for example if I want to delete the 'f' from the 'abcdef'
string, only the 'caret-moved' event is reported).

This behavior is present for multipleline and also for singleline text boxes.



------- Additional Comment #10 From bill.haneman@sun.com 2005-03-31 09:01 -------

Oana, are you using the version that was distributed via email this afternoon? 
It should have solved the issues in comment #9 (I don't see them).  Also please
indicate which 'text box' you are using in which 'Swing Demo' - are you using
SwingSet2?  If so, which widgets are you testing?


------- Additional Comment #11 From Oana Serb 2005-03-31 09:12 -------

All the tests were made with the cvs version. I didn't received at that time the
new version.
I used Swing Demo.
The text boxes from 'TextArea Two', 'Text Fields', 'More labels' and 'Label'
tags were used for tests.


------- Additional Comment #12 From Oana Serb 2005-03-31 09:15 -------

I will make all the tests again with the new version.


------- Additional Comment #13 From Oana Serb 2005-04-01 04:19 -------

I made again all the tests with the new version. The deleted text and the events
are reported correctly. The behavior shown in comment #9 is not present anymore.

====