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 122713 - menu is not always reported
menu is not always reported
Status: VERIFIED FIXED
Product: gnopernicus
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: remus draica
Nautilus Maintainers
AP2
Depends on:
Blocks:
 
 
Reported: 2003-09-19 10:38 UTC by david.hawthorne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to check if the absence of FOCUSED state is the problem here (776 bytes, patch)
2004-03-31 12:38 UTC, remus draica
none Details | Review
patch to log all outputs sent to speech (575 bytes, patch)
2004-04-08 08:21 UTC, remus draica
none Details | Review
Proposed patch. Are you agree with this solution ? (694 bytes, patch)
2004-04-27 14:28 UTC, Dana Ormenisan
none Details | Review

Description david.hawthorne 2003-09-19 10:38:57 UTC
using gnome-2.4 build from 18/09/03

-launch gnopernicus with speech enabled
-enable "say all modifiers" in voice settings
-launch nautilus
-use cursor keys to highlight an item such as a folder
-press shift-F10 to access it's context menu
.you should here "switched window", and then "menu X items"
.it appears with "say all modifiers" enabled, "menu X items" is not reported. 
-disable/enable this option and the report of "menu X items" will be
present and then absent again.
Comment 1 remus draica 2003-10-06 09:14:59 UTC
What speech driver are you using? Is impossible to reproduce this bug
on my computer. I am using festival.
Comment 2 david.hawthorne 2003-10-06 10:12:58 UTC
I am currently using FreeTTS speech driver. I will try and reproduce
the bug with festival.
Comment 3 david.hawthorne 2003-10-07 10:30:14 UTC
I've tried reproducing the bug on my machine with the Festival speech
driver and it does not occur. Switching back to FreeTTS, I can
reproduce the bug again.
Comment 4 david.hawthorne 2004-02-18 16:04:04 UTC
This bug is still present, and if anything it is happening even more
than before. I am not sure if 'Say all modifiers' has impact or not.
Can you confirm this definitely not gnopernicus before transferring to
FreeTTS?
Comment 5 remus draica 2004-02-19 07:27:20 UTC
Transferring to gnopernicus.
Comment 6 Dana Ormenisan 2004-02-24 08:27:07 UTC
I tried to reproduce this bug on my computer (SuSE machine, with
gnome-2.5 from Feb 02 and FreeTTS), but it doesn't occur. The report
of 'menu X items' is present even "Say all modifiers" checkbox is
enabled or disabled. Otherwise, I tried that on my RedHat machine
(with gnome-2.4 and festival) and 'menu X items' is NOT reported even
this checkbox is enabled/disabled. I think this problem doesn't have
anything to do with 'Say all modifiers' or with FreeTTS/Festival
speech engines. In my opinion, missing of SPI_STATE_FOCUSED for that
menu is responsible for that behavior.
David, can you tell me please if you see the same behavior on SuSE?
Comment 7 david.hawthorne 2004-02-24 09:57:26 UTC
Yes I do, I've been using SuSE for the past few months now and the
problem has been present. I'll try again to find a more reproducible case.
Comment 8 korn 2004-02-26 22:39:23 UTC
Summary should be updated to "Nautilus doesn't have SPI_STATE_FOCUSED
on context menus in some situations" to reflect the real problem (by
someone with "sufficient power" to do so.  See the top of the
description for a reproducible case in which to find the Nautilus
problem.  Gnopernicus will not enumerate the children of an object to
report the number of menu items if the object isn't focused.  This is
correct behavior in Gnopernicus; Nautilus needs to make these objects
have SPI_STATE_FOCUSED.
Comment 9 padraig.obriain 2004-03-09 08:35:26 UTC
I believe this bug was fixed by a change to atk on November 26th last
year. I am closing as a duuplicate of bug #127400. Please reopen if
the problem still occurs.


*** This bug has been marked as a duplicate of 127400 ***
Comment 10 padraig.obriain 2004-03-25 18:26:23 UTC
Peter's proposed summary does not seem to be correct. When the context menu is
popped up it does have the state FOCUSED set.

David reports that the problem still exists.

Transferring back to gnopernicus.
Comment 11 remus draica 2004-03-26 14:48:48 UTC
with the stack from March 15th this bug cannot be reproduced.

David, does this bug still occur on your computer?
Comment 12 david.hawthorne 2004-03-26 16:11:59 UTC
Yes it does, using stack from CVS Mar 22.

Using freetts speech driver also.
Comment 13 remus draica 2004-03-31 12:28:44 UTC
By stack I have meant the entire gnome stack, not the gnopernicus version.
With that stack and current gnopernicus version (from CVS) this bug is not
present on my computer.
Comment 14 david.hawthorne 2004-03-31 12:31:34 UTC
Which speech driver are you using?
Comment 15 remus draica 2004-03-31 12:35:57 UTC
I am using FreeTTS.
Comment 16 remus draica 2004-03-31 12:38:57 UTC
Created attachment 26154 [details] [review]
patch to check if the absence of FOCUSED state is the problem here


With this patch gnopernicus will show the items from context menu even if they
doesn't contain state FOCUSED.
Comment 17 padraig.obriain 2004-03-31 14:23:16 UTC
I do not believe that Remus's patch should be necessary as I do not believe that
an item from the context menu does not contain FOCUSED.

Can someone show me such a testcase? It is exists it is a bug in atk or gail.
Comment 18 padraig.obriain 2004-04-06 10:43:43 UTC
I have discussed this with David.

The problem occurs with both context menus and window menus.

If you pop up a window menu it is spoken correctly. If you then pop it down you
hear that focus has gone back to some object in the window. If before
gnopernicus has finished speaking you pop up the menu again it does not speak
the number of items in the menu. If you do wait until the gnopernicus has
finished speaking before popping up the menu it does speak the number of item
correctly.

Changed summary to better describe problem.
Comment 19 remus draica 2004-04-08 08:21:49 UTC
Created attachment 26458 [details] [review]
patch to log all outputs sent to speech


This patch will log all output sent to speech. That will help to see if the
problem is the information sent or the speech queue logic.
Comment 20 padraig.obriain 2004-04-08 08:42:57 UTC
Remus,

Does this mean that you cannot reproduce the problem?
Comment 21 remus draica 2004-04-08 09:41:31 UTC
Yes, the problem is not reproductible on my computer.
Comment 22 remus draica 2004-04-19 13:19:07 UTC
David, can you recheck if this bug is still present using FreeTTs and with
".orbitrc" file present in "~"? (See bug 138648).
Comment 23 david.hawthorne 2004-04-19 13:43:04 UTC
Yes, I will check this and get back to you.
Comment 24 david.hawthorne 2004-04-20 14:31:30 UTC
I am still seeing this problem, and I have a .orbitrc file present.
Comment 25 Dana Ormenisan 2004-04-26 14:49:49 UTC
Using gnome stack from March 11th I managed to reproduce this problem. I applied
Remus' proposed patch on comment #19 and, running gnopernicus with
GNOPERNICUS_LOG=at-spi, the outputs is:

AT:818c0e8p----"window:create" for 8181630p "" role "window" from "GAIL" with
details 0 and 0
AT:81800d8p----"window:deactivate" for 818bfc8p "Computer" role "frame" from
"GAIL" with details 0 and 0
AT:8180138p----"window:activate" for 8181630p "" role "window" from "GAIL" with
details 0 and 0
AT:8181588p----"focus:" for 81814c0p "" role "menu" from "GAIL" with details 0 and 0

<SRSOUT priority="3" preempt="false"><TEXT voice="system">create
window</TEXT></SRSOUT>
<SRSOUT priority="0" preempt="true"><TEXT voice="role">Menu</TEXT><TEXT
voice="system">10</TEXT><TEXT voice="system">items</TEXT></SRSOUT>
<SRSOUT priority="2" preempt="true"><TEXT voice="system">switch to
window</TEXT></SRSOUT>

So the information is sent to speech. The problem is the order of sending
information to speech: the at-spi events order are received in a particular
order and the appropriate information is sent to speech in a different order.

We need to know when this events ('window:create' and 'window:activate' for
'window' role) are received for a pop-up menu. There are two possible ways to
check this:
  - using a new role (Padraig, should this pop-up menus receive a different
role? Somethig like 'pop-up' ...)
  - using the object hierarchy (check if this object has some menu-item children).

 
Comment 26 bill.haneman 2004-04-26 15:42:15 UTC
I don't think a new role is the best choice here.  Can you folks (BAUM) please
indicate which events are resulting in which speech (above)?  We can then try to
help you resolve the issue above.
Comment 27 Dana Ormenisan 2004-04-27 08:44:04 UTC
The 'window:create' event is spoken <SRSOUT priority="3" preempt="false"><TEXT
voice="system">create window</TEXT></SRSOUT>

The 'window:activate'event is spoken <SRSOUT priority="2" preempt="true"><TEXT
voice="system">switch to window</TEXT></SRSOUT>

The 'focs:' event for the menu is spoken <SRSOUT priority="0"
preempt="true"><TEXT voice="role">Menu</TEXT><TEXT voice="system">10</TEXT><TEXT
voice="system">items </TEXT></SRSOUT>

Comment 28 Dana Ormenisan 2004-04-27 14:26:11 UTC
This popup menu has ROLE_WINDOW. 
Gnopernicus should not report window events ('window:create',
'window:activate',...) for objects with role window. If these events are not
spoken, 'Menu, X items' will be reported, so the problem is solved.
Comment 29 Dana Ormenisan 2004-04-27 14:28:53 UTC
Created attachment 27141 [details] [review]
Proposed patch.  Are you agree with this solution ?
Comment 30 remus draica 2004-04-28 13:38:05 UTC
Patch applied to CVS head and gnome-2-6 branch.
Comment 31 Dana Ormenisan 2004-04-29 06:17:18 UTC
Should I close this bug ? I believe the problem is fixed now.
Comment 32 padraig.obriain 2004-04-29 07:29:41 UTC
Yes.