Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


Hi everyone,

while reviewing commit 2f9c6940a702 ("printdialog: fix some accessibility warnings") I realized it
annotates a the hidden "pagespersheettxt" instead of the visible "pagespersheetbtn". Reading the
code, you can see this happens because the print dialog switches a label with a radio button, hiding
the other widget, depending on the calling module.

I came up with https://gerrit.libreoffice.org/#/c/61050/, which adds a check to gla11y to warn about
different visibility of "label-for" and "labelled-by" pair. But this doesn't help much, if some code
later changes the visibility of widgets.

First I had the idea to add the 2nd relation. I looked at Glade, tried to get some impression from
the Internet and looked at the LO API. Turns out Glade offers multiple connections for both sides,
but LOs API just offers 1:1.

Hmm - so I changed gla11y to really check for the 1:1 relation on both sides and it came up with
some more broken relations, compared to the already ignored ones (patch for gla11y is
https://gerrit.libreoffice.org/#/c/61051). All of them broken in a way. From parsing UI files the
last relationship wins. For 1:N this will at least result in a correct forward and backward link.
For M:N you can end in a lot of wrong combinations, I guess.

So do we want to enforce LOs current 1:1 API limitation on the UI files until someone fixes the API?
Just adding all the new warnings to the suppr files shouldn't be that hard.

Comments?

Jan-Marek

P.S. For the two hits found by the new check, I manually added accessibility calls to fix the
relation in the gla11r patch.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.