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:
parent
dad3d71a0c
commit
25a2a0156e
@ -294,6 +294,9 @@ export const QuickSlider = GObject.registerClass({
|
|||||||
this.bind_property('icon-reactive',
|
this.bind_property('icon-reactive',
|
||||||
this._iconButton, 'reactive',
|
this._iconButton, 'reactive',
|
||||||
GObject.BindingFlags.SYNC_CREATE);
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
this.bind_property('icon-reactive',
|
||||||
|
this._iconButton, 'can-focus',
|
||||||
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
this.bind_property('icon-label',
|
this.bind_property('icon-label',
|
||||||
this._iconButton, 'accessible-name',
|
this._iconButton, 'accessible-name',
|
||||||
GObject.BindingFlags.SYNC_CREATE);
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user