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 487960 - [pyatspi] default.py: findActiveWindow DEPRECATED: warning
[pyatspi] default.py: findActiveWindow DEPRECATED: warning
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks: 448848
 
 
Reported: 2007-10-18 16:55 UTC by Rich Burridge
Modified: 2007-10-18 17:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to hopefully fix the problem. (832 bytes, patch)
2007-10-18 16:57 UTC, Rich Burridge
none Details | Review
Revised version (thanks Eitan). (749 bytes, patch)
2007-10-18 17:24 UTC, Rich Burridge
committed Details | Review

Description Rich Burridge 2007-10-18 16:55:41 UTC
I was trying to run a simple StarOffice test. I turned on
settings.deprecatedMessages = True and did:

 1. Start oowriter.
 2. Enter Alt-f, right arrow and Return.  (File->New->Text Document).
 3.  Enter Alt-a, right arrow and Return.  (Table->Insert->Table...).
 4. Enter Return (Insert a table with the default parameters - 2x2).
 5. Enter a and Tab (Inserts "a" into cell A1 and moves to cell B1).
 6. Enter Shift-Tab (Returns to cell A1).
 7. Enter Alt-f, Alt-c to close the Writer application.
 8. Enter Tab and Return to discard the current changes.

It gave me 5913 DEPRECATED warnings.

One of these (that occurs a lot) is:

DEPRECATED: orca/default.py:5761 (findActiveWindow) Instead of accessible.child(i), use accessible[i]
Comment 1 Rich Burridge 2007-10-18 16:57:13 UTC
Created attachment 97433 [details] [review]
Patch to hopefully fix the problem.

As this is my first pyatspi porting attempt, could somebody check this over
before I commit it please?

This reduces the total number of DEPRECATED warnings to 5523.
Comment 2 Rich Burridge 2007-10-18 17:24:28 UTC
Created attachment 97434 [details] [review]
Revised version (thanks Eitan).
Comment 3 Rich Burridge 2007-10-18 17:54:09 UTC
Patch committed. Closing as FIXED.