GtkLabel's accessible name includes mnemonic underline
(originally reported in the GNOME accessibility matrix chat)
Steps to reproduce
- Run attached sample python program label.py with
GTK_DEBUG=interactive
- Use the "Select an object" functionality to select the "Hello world" label
- switch to the "Accessibility" tab and check the accessible name
Current behavior
The accessible name is reported as "_Hello world", i.e. it includes the underline character that's set for the mnemonic.
Expected outcome
The accessible name should be just "Hello world".
Version information
gtk git main as of 396ef5eb, self-compiled ion Debian testing.
Additional information
n/a