GNOME Bugzilla – Bug 487960
[pyatspi] default.py: findActiveWindow DEPRECATED: warning
Last modified: 2007-10-18 17:54:09 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]
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.
Created attachment 97434 [details] [review] Revised version (thanks Eitan).
Patch committed. Closing as FIXED.