a11y: Don't create a parent loop for quick settings sliders

Rather than returning the parent container of the slider, which presents
itself as the slider, return the parent of the slider container.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6686

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2762>
This commit is contained in:
Lukáš Tyrychtr 2023-05-11 11:19:36 +02:00 committed by Florian Müllner
parent 27ffc37668
commit a5cf08ac55

View File

@ -323,7 +323,10 @@ var QuickSlider = GObject.registerClass({
});
box.add_child(sliderBin);
sliderBin.set_accessible(this.slider.get_accessible());
// Make the slider bin transparent for a11y
const sliderAccessible = this.slider.get_accessible();
sliderAccessible.set_parent(sliderBin.get_parent().get_accessible());
sliderBin.set_accessible(sliderAccessible);
sliderBin.connect('event', (bin, event) => this.slider.event(event, false));
this._menuButton = new St.Button({