quick-slider: Do not allow focusing the icon when it's not reactive

This hides a disabled unlabeled button from the focus order in the display
brightness status indicator, and may be others.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3481>
This commit is contained in:
Lukáš Tyrychtr 2024-09-23 10:47:49 +02:00
parent dad3d71a0c
commit 25a2a0156e

View File

@ -294,6 +294,9 @@ export const QuickSlider = GObject.registerClass({
this.bind_property('icon-reactive',
this._iconButton, 'reactive',
GObject.BindingFlags.SYNC_CREATE);
this.bind_property('icon-reactive',
this._iconButton, 'can-focus',
GObject.BindingFlags.SYNC_CREATE);
this.bind_property('icon-label',
this._iconButton, 'accessible-name',
GObject.BindingFlags.SYNC_CREATE);