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 486970 - Where Am I should let you know you are in a toolbar
Where Am I should let you know you are in a toolbar
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: 2.22.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 468098
 
 
Reported: 2007-10-15 21:56 UTC by Willie Walker
Modified: 2008-07-22 19:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
possible solution (1.80 KB, patch)
2007-12-03 18:25 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
updated test assertions; left pauses (3.15 KB, patch)
2007-12-03 22:23 UTC, Joanmarie Diggs (IRC: joanie)
reviewed Details | Review
stripped the ' ' (3.12 KB, patch)
2007-12-05 19:30 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Willie Walker 2007-10-15 21:56:49 UTC
Steps to reproduce:

1) Run the Application main window demo of gtk-demo

2) Do a basic "Where Am I" via KP_Enter when you're in the toolbar

3) Orca should let you know you're in a toolbar.

Mike, the exact spot where the rolename of toolbar should be presented needs to  be spec'd.  Please specify where it should be.
Comment 1 Joanmarie Diggs (IRC: joanie) 2007-12-01 02:20:35 UTC
Mike, just added your name to the summary to request the spec Will asked for.  Thanks!
Comment 2 Joanmarie Diggs (IRC: joanie) 2007-12-03 01:36:45 UTC
Something else which (I think) it would be helpful to spec out is exactly when we should check to see if we're in a toolbar.  I believe the majority of the controls we handle in Where Am I could have an ancestor that's a toolbar.  Should we just always check the hierarchy?
Comment 3 Willie Walker 2007-12-03 15:45:47 UTC
(In reply to comment #2)
> Something else which (I think) it would be helpful to spec out is exactly when
> we should check to see if we're in a toolbar.  I believe the majority of the
> controls we handle in Where Am I could have an ancestor that's a toolbar. 
> Should we just always check the hierarchy?

As long as it remains isolated to Where Am I, we probably should just always check the hierarchy.
Comment 4 Joanmarie Diggs (IRC: joanie) 2007-12-03 18:25:39 UTC
Created attachment 100130 [details] [review]
possible solution

(In reply to comment #3)
> As long as it remains isolated to Where Am I, we probably should just always
> check the hierarchy.

Okie dokie.  This patch does that.  I went ahead and took a guess that we'd want to announce the toolbar first and then the object with focus (in the case of the bug report, the Open button).  This patch also optimistically tries to get the label and/or name of the toolbar that contains the locusOfFocus.  Unfortunately, toolbars seem to be rather anonymous creatures.  Thus with this patch we say "toolbar, open button."  But it's not for a lack of trying.... :-)

Mike in addition to your feedback and any changes you would like to see in terms of this toolbar patch, I noticed that here, too, we've got the pregnant pause thang going on between "open" and "button".  If it sounds funny to you as well, perhaps it's worth opening a bug to eliminate pauses between the names of objects and their roles and adjusting all of our test assertions accordingly?  Let me know.  Thanks!
Comment 5 Mike Pedersen 2007-12-03 19:31:55 UTC
The WhereAmI information presented here sounds good to me.  With Espeak I'm not bothered by the pauses but I don't mind if you want to remove them.  
Comment 6 Joanmarie Diggs (IRC: joanie) 2007-12-03 22:23:29 UTC
Created attachment 100148 [details] [review]
updated test assertions; left pauses

If I'm the only one bothered by the pause, might as well leave it as is. <smile>

Will, please review.
Comment 7 Willie Walker 2007-12-04 22:38:10 UTC
(In reply to comment #6)
> Created an attachment (id=100148) [edit]
> updated test assertions; left pauses
> 
> If I'm the only one bothered by the pause, might as well leave it as is.
> <smile>
> 
> Will, please review.
> 

This looks good.  If I were to change anything, it would be to add a strip to get rid of the ' ' in front of 'toolbar' since that ' ' looks odd.

+        text = self._getObjLabelAndName(obj) + " " + \
+               rolenames.getSpeechForRoleName(obj)
+        utterances.append(text.strip())

Other than that, I say commit and close this bug.
Comment 8 Joanmarie Diggs (IRC: joanie) 2007-12-05 19:30:05 UTC
Created attachment 100340 [details] [review]
stripped the ' '

Sounds good.  The ' ' is stripped; the test updated accordingly.  Patch committed.
Comment 9 Mike Pedersen 2007-12-09 20:12:46 UTC
looks good 
Comment 10 Joanmarie Diggs (IRC: joanie) 2007-12-09 20:17:50 UTC
Thanks.  Closing as FIXED.