a11y: Special-case nested buttons
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Jun 2023 12:12:31 +0000 (08:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 18 Jun 2023 12:12:31 +0000 (08:12 -0400)
commit743b27571da5d793bc97c69d9a66f54ecceadcf0
tree6aea27454d1a9919084131b948cad1f6ce13c306
parent30c38951b92ffc6b342c7b203739699cead46b4c
a11y: Special-case nested buttons

Special-case nested buttons in our name computation,
since it is hard to reconcile all the a11y attributes
being on the wrapper, but the focus ending up on the
button inside.

This is a pragmatic approach that works. The only
downside is that the wrapper and the button end up
with the same name+description, but at least orca
seems to only read the focus elements' ones.
gtk/gtkatcontext.c