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 747490 - gnome disk utility lacks accessible labels for some of its controlls
gnome disk utility lacks accessible labels for some of its controlls
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: Michael Catanzaro
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2015-04-08 08:29 UTC by kendell clark
Modified: 2017-03-22 16:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GduVolumeGrid: GridElement should hold text, not markup (3.39 KB, patch)
2015-08-26 01:35 UTC, Michael Catanzaro
committed Details | Review
GduVolumeGrid: Add basic accessibility (2.69 KB, patch)
2015-08-26 01:35 UTC, Michael Catanzaro
committed Details | Review
Use the first grid element for the initial accessible name of the grid (1.64 KB, patch)
2015-08-28 15:36 UTC, Michael Catanzaro
none Details | Review
Use the first grid element for the initial accessible name of the grid (3.85 KB, patch)
2015-08-29 18:45 UTC, Michael Catanzaro
committed Details | Review

Description kendell clark 2015-04-08 08:29:11 UTC
gnome disks lacks accessible labels for the following controlls. The volumes list is silent with orca. This looks visually like a grid of icons, so they should be fairly simple to label. The set of buttons just past the volumes list. The farthest left is to unmount the partition, the middle onedeletes the partition, and the last one brings up a menu for adding, editing, creating and restoring a partition image, etc. Please provide accessible labels with orca so these controlls can be read aloud. Lastly, the menu button is labeled, but would it be possible to give it a friendlier name? Maybe something like options menu? I'm not sure what to call it.
Comment 1 kendell clark 2015-08-22 06:04:20 UTC
has there been any work on this, either for gnome 3.16 or the upcoming gnome 3.18? Trying to tally up all my bugs that have been fixed and ping those that haven't yet
Comment 2 Michael Catanzaro 2015-08-23 00:31:48 UTC

*** This bug has been marked as a duplicate of bug 738150 ***
Comment 3 Michael Catanzaro 2015-08-23 00:46:11 UTC
This is not an exact duplicate because "The volumes list is silent with orca" -- those need accessible labels indeed. The buttons missing tooltips will be fixed in bug #738150, though.
Comment 4 Michael Catanzaro 2015-08-23 00:56:09 UTC
Aaaand the "buttons" in the partition view are not actual buttons, so adding tooltips to them does not fix the accessibility problem in itself....
Comment 5 Michael Catanzaro 2015-08-23 01:47:26 UTC
(In reply to Michael Catanzaro from comment #4)
> Aaaand the "buttons" in the partition view are not actual buttons, so adding
> tooltips to them does not fix the accessibility problem in itself....

Actually they are normal GtkToolButtons....
Comment 6 Michael Catanzaro 2015-08-23 16:25:22 UTC
I have no plans to change the grid to a list, but I like Allan's design, so "patches accepted." It is too late for 3.18 though; that would be 3.20 material.

I think it should be possible to make the existing grid accessible, though.
Comment 7 Nicholas Bishop 2015-08-23 17:01:49 UTC
I'm going to try working on a patch to implement that mockup. I haven't touched Gnome/Gtk stuff in a while though, so no guesses on how long it takes me. :)
Comment 8 Michael Catanzaro 2015-08-26 01:34:44 UTC
(In reply to Nicholas Bishop from comment #7)
> I'm going to try working on a patch to implement that mockup. I haven't
> touched Gnome/Gtk stuff in a while though, so no guesses on how long it
> takes me. :)

Thanks a bunch. Please use the other bug (with the mockups) for this. For this bug, we'll just focus on the immediate accessibility issues.

I have a patch for the volumes grid. Could you try it out, Kendell? And Joanie, could you look it over please?

The toolbuttons beneath the volumes grid are still inaccessible.
Comment 9 Michael Catanzaro 2015-08-26 01:35:32 UTC
Created attachment 309985 [details] [review]
GduVolumeGrid: GridElement should hold text, not markup

I see no reason why markup could ever possibly get into this variable,
so rename it to text and use the appropriate pango function for text.
This allows us to reuse this text for the grid's accessible name.

If somehow we wind up with markup appearing in the grid, then we'll need
to revisit this, but I think it's safe....
Comment 10 Michael Catanzaro 2015-08-26 01:35:35 UTC
Created attachment 309986 [details] [review]
GduVolumeGrid: Add basic accessibility

I bet this is still almost impossible to use, if you don't know to use
the arrow keys to move around the partition table, but at least now you
can hear what the partions are, you have some chance. Further
improvement probably needed.

P.S. Yes, this is a hack. But it works just fine in Orca.
Comment 11 kendell clark 2015-08-26 03:56:49 UTC
I'd be glad to test the patch. How would I go about this? git apply filename.patch in the gnome disk utility git tree? Right now I'm tracking the master branch, but I can easily switch to thee gnome-3-16 branch if needed
Comment 12 kendell clark 2015-08-26 06:46:16 UTC
I've just tested both patches and it's an enormous improvement. It's just a tad verbose but nowhere near enough to cause annoyance. It says "volumes" after every arrow key pressed but again, not a big deal. This is fantastic. I can't speak to the code quality but it definitely improved accessibility
Comment 13 Michael Catanzaro 2015-08-28 15:09:50 UTC
Attachment 309985 [details] pushed as 9ed7541 - GduVolumeGrid: GridElement should hold text, not markup
Attachment 309986 [details] pushed as 422b04b - GduVolumeGrid: Add basic accessibility
Comment 14 Michael Catanzaro 2015-08-28 15:36:25 UTC
Kendell, could you test this patch too, please? For some reason I'm having trouble using Orca today; I can't hear anything at all. :(
Comment 15 Michael Catanzaro 2015-08-28 15:36:46 UTC
Created attachment 310205 [details] [review]
Use the first grid element for the initial accessible name of the grid

Instead of "Volumes Grid", so the user doesn't have to switch to another
grid element and back to read the first partition, and so that it is
possible to read the first partition when there is only one partition.
Comment 16 kendell clark 2015-08-29 01:30:37 UTC
sure thing. Which patch? I've tested both the previous ones you committed, the one that changed the grid to hold text, not markup and the one that added basic accessibility. Was there another one? If so I'll grab it and test, no problem.
Comment 17 Michael Catanzaro 2015-08-29 01:39:08 UTC
Please test the patch in comment #14, thanks :)

I dunno why my Orca has stopped working :(
Comment 18 kendell clark 2015-08-29 02:01:16 UTC
I hate to be the bearer of bad news, but this patch doesn't seem to fix the issue. I've tested on a drive with only one partition and the volumes grid just says "vomumes grid panel" without reading the partition. If I test on a drive with multiple partitions I can read the partitions so accessibility isn't broken, it just doesn't read the first partition until I've arrowed away from and back to the icon that represents it.
Comment 19 Michael Catanzaro 2015-08-29 18:45:41 UTC
The following fix has been pushed:
a3b0707 Use the first grid element for the initial accessible name of the grid

Thanks for catching the bug. I fixed it and tested in accerciser.
Comment 20 Michael Catanzaro 2015-08-29 18:45:47 UTC
Created attachment 310280 [details] [review]
Use the first grid element for the initial accessible name of the grid

Instead of "Volumes Grid", so the user doesn't have to switch to another
grid element and back to read the first partition, and so that it is
possible to read the first partition when there is only one partition.

Also, use gdu_volume_grid_get_no_media_string() for the accessible name
when appropriate.