A11y: unable to get GtkButton caption when accessibility name is set
Steps to reproduce
- set accessibility name on a GtkButton
- start accerciser and locate the button
- observe that there's only accessibility name available, no way to obtain button caption
Current behavior
currently there's only accessibility get_name property which is not enough in such cases.
Expected outcome
GtkButton should implement text interface like label, so the button caption would be exposed without changing A11y api.
This way both accessibility name and button caption would be easily reachable through a11y api
Version information
All GTk/A11y Versions
Additional info
Windows and macOS both implement this so it's possible to access button caption when it's accessibility name is set.