mouse review: Erroneous presentation of Caja's places sidebar
Steps to reproduce:
- Launch Orca with mouse review enabled
- Open Caja (MATE's file manager)
- Make sure the sidebar is the Places one (I believe it's the default, but otherwise change it with the dropdown above)
- Move the mouse over the items in the Places sidebar
Actual results:
Most of the time it'll speak the 6th element from the top (for me, "Downloads") instead of the one under the mouse.
Expected results:
The item under the mouse is spoken. E.g., hovering "Documents" speaks it, same for "Music".
Analysis
You might want to disregard this if you know better, but are things I gathered.
First, the element found under the mouse seem good. This might suggest that actually not only mouse review might be affected though.
Then, the problem seem to boil down to the layout of this sidebar having cells inside cells (e.g. table → cell → cell), and apparently Utilities.coordinatesForCell()
has issue with this specific instance of this case and will find the index of the cell in its direct parent (which represents the row), leading to mixing rows and columns.
This puzzles me because apparently it's the same layout for all GtkTreeViews, and most of them work fine (e.g. the "Tree" sidebar works fine). Under the hood, the Places sidebar its also a GtkTreeView BTW, nothing special to it but its visual attributes.
Or maybe this function shouldn't be called on the sub-cell, but somehow is in this case? I'm not sure, and I'm struggling to go further here.