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 554111 - Orca doesn't speak the Rhythmbox rating widget
Orca doesn't speak the Rhythmbox rating widget
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: speech
2.23.x
Other All
: Normal normal
: 2.24.1
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on: 368641
Blocks:
 
 
Reported: 2008-09-27 21:20 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-11-16 19:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
revision 1 (2.42 KB, patch)
2008-09-27 21:29 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
revision 2 (slight tweak) (2.42 KB, patch)
2008-09-27 21:36 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
revision 3: trunk compatible revision (2.24 KB, patch)
2008-09-27 22:37 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2008-09-27 21:20:54 UTC
Steps to reproduce:

1. Get the latest patch by Jonathan Matthew on bug #368641 (thanks Jonathan!!!)

2. Get into the properties dialog (details page) for a song, or go to the Music menu->Playlist->New Automatic Playlist

3. Tab to the rating widget and use Left/Right Arrow to change the rating.

Expected results: Orca would speak and braille the rating.

Actual results: Orca displays the rating, but doesn't speak it.
Comment 1 Joanmarie Diggs (IRC: joanie) 2008-09-27 21:29:20 UTC
Created attachment 119492 [details] [review]
revision 1

The rating widget is of ROLE_UNKNOWN and already focused when changing the rating. As a result, speechgenerator.py only speaks the object availability (should the widget be unavailable, which it's not, so we speak nothing). This patch adds a _getDefaultSpeech method to the rhythmbox speech generator to handle this condition.  Seems to work.

Note that we still don't speak/display anything when the rating widget first gets focus in the new playlist dialog. In that dialog the widget starts out nameless (in contrast, in the Properties dialog, it starts out with a name of 'No Stars').
Comment 2 Joanmarie Diggs (IRC: joanie) 2008-09-27 21:36:36 UTC
Created attachment 119493 [details] [review]
revision 2 (slight tweak)

Forgot to pass along role to the default generator. D'oh!
Comment 3 Joanmarie Diggs (IRC: joanie) 2008-09-27 22:37:20 UTC
Created attachment 119500 [details] [review]
revision 3: trunk compatible revision

I can tell it's going to be one of those evenings....

The svn headers in the speech_generator.py for the rhythmbox script were causing the patch to fail -- including (or rather excluding) a needed import line. So I just updated speech_generator.py. This patch should now apply without failure.
Comment 4 Willie Walker 2008-10-03 20:30:41 UTC
When I first saw this patch, I missed that it was isolated to the existing Rhythmbox script.  Now that I see that, this seems like a nice fine patch. (Thanks!)
Comment 5 Joanmarie Diggs (IRC: joanie) 2008-10-09 20:49:41 UTC
Thanks Will. Because Jonathan has indicated that he anticipates committing his patch (bug #368641), I've committed ours. Many thanks Jonathan!!

Changing to "Blocked" until the Rhythmbox patch is in because currently Orca still doesn't speak the rating widget, but there's nothing more we can do.
Comment 6 Joanmarie Diggs (IRC: joanie) 2008-11-16 19:03:08 UTC
Jonathan committed his patch. Closing our bug as FIXED.