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 519092 - Add accessibility support to GtkVolumeButton
Add accessibility support to GtkVolumeButton
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Accessibility
unspecified
Other All
: Normal normal
: ---
Assigned To: Jonh Wendell
gtk-bugs
Depends on:
Blocks: 519096 519313
 
 
Reported: 2008-02-27 16:47 UTC by Willie Walker
Modified: 2008-06-13 02:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
initial approach (1.58 KB, patch)
2008-03-15 03:16 UTC, Jonh Wendell
committed Details | Review

Description Willie Walker 2008-02-27 16:47:44 UTC
The GtkVolumeButton is a newer widget for GTK+ and we need accessibility support created for it.
Comment 1 Jonh Wendell 2008-03-01 17:40:42 UTC
I claim this task ;)
Comment 2 Willie Walker 2008-03-07 01:00:30 UTC
Go for it!  A good place to get started with checking things out would be the Accerciser application and Orca.  There are some recent Linux Journal articles that tell you how to get going with both of these:

http://www.linuxjournal.com/article/9978
http://www.linuxjournal.com/article/9991

In addition, if you know of an application that uses this widget, please let us know so we can work on adding tests for it to the Orca regression test suite.
Comment 3 Jonh Wendell 2008-03-15 03:16:02 UTC
Created attachment 107328 [details] [review]
initial approach

Here is an initial draft. Please tell me if I am in the right direction.

As GtkVolumeButton is a descendant of GtkScaleButton, some work needs to be done there. So, after this, I'd like to work on bug #519090.

I have tested it with accerciser and orca. Also, I just found one app which is using it, brasero.
Comment 4 Willie Walker 2008-03-17 14:28:33 UTC
Li - do you have tim toe lend your expertise in this space to do a quick review?
Comment 5 David Bolter 2008-03-17 20:10:52 UTC
FWIW the patch looks good to me although I'm that familiar with atk_action_set_description. Is the index 1 based or 0 based?
Comment 6 Jonh Wendell 2008-03-17 20:18:30 UTC
Hi, David.

The index is 0-based, but the action 0 (button click) does nothing. The actual action happens on index 1 (button press), so, I just set the description in that action.
Comment 7 Li Yuan 2008-03-18 03:32:46 UTC
Looks good. Is the press action the only action we need to implement A11Y for VolumeButton? I think we may need click and release actions also.
Comment 8 Jonh Wendell 2008-03-18 11:51:21 UTC
Hi, Li.

In accerciser, in the actions section, the only action which responded to the 'test action' button was 'press'. Click and Release do nothing.

What am I supposed to do? Could you give me a tip?

Thanks.
Comment 9 Li Yuan 2008-03-19 02:42:40 UTC
Hi Jonh,

Do you mean "Interface Viewer"? For a button, it should have 3 actions. Or you can try gok to grab the button.
Comment 10 Jonh Wendell 2008-03-20 10:59:27 UTC
Hi, Li. Yes, I mean "interface viewer".

The button has 3 actions, but only the 'press' action works, by showing the volume control. Must the other actions have descriptions too? Even if they do nothing when executed?
Comment 11 Li Yuan 2008-03-20 11:01:53 UTC
I don't think description is necessary. "works" means you can change the volume by the action?
Comment 12 Jonh Wendell 2008-03-20 11:22:12 UTC
Yes, it actually shows the control (the scale widget) which you can change the volume.
Comment 13 Matthias Clasen 2008-05-24 01:47:07 UTC
The patch looks good to me, fwiw. 
Comment 14 Luis Medinas 2008-06-04 22:44:44 UTC
This patch is really useful could this go to gtk+ 2.13 ?
Comment 15 Matthias Clasen 2008-06-13 02:32:26 UTC
        * gtk/gtkvolumebutton.c: Set accessibility descriptions.
        Patch by Jonh Wendell