GNOME Bugzilla – Bug 404664
Only the first two items in combo boxes are spoken in GNOME 2.17
Last modified: 2007-02-08 03:40:02 UTC
This was initially reported in Orca bug #403631. Only the first two entries in a combo box are correctly spoken/brailled by Orca. This is because they have valid name fields. Other entries in the combo box have a name field of "". I will attach a standalone Python script that reproduces this problem. Steps to reproduce: 1) Run this Python script in an xterm: % python bug_403631.py 2) Give focus to a gnome-terminal window. 3) Hit F10 to give focus to the first menu on the menu bar. 4) Hit the right arrow key to move to the Edit Menu. 5) Hit the Up arrow key, to give focus to the "Current Profile..." menu item. 6) Hit Return to bring up the 'Editing Profile "Default"' dialog. 7) Hit the right arrow key to give focus to the "Title and Command" tab. 8) Hit Tab to give focus to the "Initial title:" text field. 9) Git Tab to give focus to the "Dynamically-set title" combo box. 10) Hit Space to show the entries in this combo box. 11) Hit the down arrow key to select the second item. 12) Hit the down arrow key to select the third item. 13) Hit the down arrow key to select the fourth item. 14) Press Esc to dismiss this list. 15) Press F12 to terminate the script. For the first two items in the combo box, you will see the following output: focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name='Replaces initial title' role='menu item' state='ENABLED FOCUSED SELECTABLE SELECTED SENSITIVE SHOWING VISIBLE' focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name='Goes before initial title' role='menu item' state='ENABLED FOCUSED SELECTABLE SELECTED SENSITIVE SHOWING VISIBLE' For the last two item in the combo box you will see: focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name=None role='menu item' state='ENABLED FOCUSED SELECTABLE SELECTED SENSITIVE SHOWING VISIBLE' focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name='Replaces initial title' role='combo box' state='ENABLED FOCUSED SENSITIVE SHOWING VISIBLE' Notice that the name field is empty for those last two. This is a serious regression from GNOME 2.16, where this works just fine.
Created attachment 81939 [details] Standalone Python script to use to reproduce this problem.
Created attachment 81940 [details] Output from running bug_403631.py abd following the steps in this bug description.
Sorry. Cut and pasted the wrong items. The two failing menu items "focus:" events in the description above, report as: focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name=None role='menu item' state='ENABLED FOCUSED SELECTABLE SELECTED SENSITIVE SHOWING VISIBLE' focus: 0 0 <CORBA.any of type 'IDL:Accessibility/EventDetails:1.0'> name=None role='menu item' state='ENABLED FOCUSED SELECTABLE SELECTED SENSITIVE SHOWING VISIBLE'
This shouldn't be filed against atk/atk... If this is a gtk combo box then the relevant code is in either gail or gtk.
The problem is caused by the patch in bug #398330 http://bugzilla.gnome.org/show_bug.cgi?id=398330 If I comment those two lines out: + if (index < 0 || index > g_list_length (list)) + return NULL; then Orca nicely speaks all of the entries in the combo box.
The bug has been fixed in trunk, you can have a try. *** This bug has been marked as a duplicate of 403138 ***
The version of gail in SVN trunk/HEAD does indeed fix this problem, but I don't think it's a duplicate of bug #403138. If I just apply that new patch attached to that bug to version 1.10.1, then the problem still exists. Anyway, the problem appears fixed. We eagerly await your new tarball. Thanks.
Are you using http://bugzilla.gnome.org/attachment.cgi?id=81647 ? Just tested on my machine and it works. If you are using gnome-terminal to test the patch, please remember restart gnome-terminal. I tested with evolution and gnome-terminal, it is OK. I will release gail next Monday.
Yes I was. I tested it by trying to read the Orca Speech Voice Preferences combo box. I had restarted Orca. It's not a big deal. I was able to get combo boxes to nicely speak when I tried gail from svn trunk/HEAD. I'll try the new gail tarball when you release it next week to make sure. Thanks.