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 404664 - Only the first two items in combo boxes are spoken in GNOME 2.17
Only the first two items in combo boxes are spoken in GNOME 2.17
Status: RESOLVED DUPLICATE of bug 403138
Product: atk
Classification: Platform
Component: gail
unspecified
Other Linux
: Urgent critical
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks: 403631
 
 
Reported: 2007-02-05 17:01 UTC by Rich Burridge
Modified: 2007-02-08 03:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Standalone Python script to use to reproduce this problem. (17.72 KB, text/plain)
2007-02-05 17:02 UTC, Rich Burridge
Details
Output from running bug_403631.py abd following the steps in this bug description. (4.15 KB, text/plain)
2007-02-05 17:03 UTC, Rich Burridge
Details

Description Rich Burridge 2007-02-05 17:01:33 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.
Comment 1 Rich Burridge 2007-02-05 17:02:15 UTC
Created attachment 81939 [details]
Standalone Python script to use to reproduce this problem.
Comment 2 Rich Burridge 2007-02-05 17:03:24 UTC
Created attachment 81940 [details]
Output from running bug_403631.py abd following the steps in this bug description.
Comment 3 Rich Burridge 2007-02-05 17:13:23 UTC
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'
Comment 4 bill.haneman 2007-02-05 17:28:26 UTC
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.
Comment 5 Rich Burridge 2007-02-06 19:40:07 UTC
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.
Comment 6 Li Yuan 2007-02-07 08:32:17 UTC
The bug has been fixed in trunk, you can have a try.

*** This bug has been marked as a duplicate of 403138 ***
Comment 7 Rich Burridge 2007-02-07 15:27:14 UTC
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.
Comment 8 Li Yuan 2007-02-08 03:24:28 UTC
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.
Comment 9 Rich Burridge 2007-02-08 03:40:02 UTC
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.