mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
status/backlight: Notify slider value changes
The custom setter used by the slider item isn't emitting change notifications, so the property binding that uses it as source never propagates the new value. Fix this by emitting proper change notifications. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2856>
This commit is contained in:
parent
3c175bce05
commit
7c4b1d4ae6
1 changed files with 5 additions and 0 deletions
|
|
@ -44,9 +44,14 @@ const SliderItem = GObject.registerClass({
|
|||
}
|
||||
|
||||
set value(value) {
|
||||
if (this.value === value)
|
||||
return;
|
||||
|
||||
this._slider.block_signal_handler(this._sliderChangedId);
|
||||
this._slider.value = value / 100;
|
||||
this._slider.unblock_signal_handler(this._sliderChangedId);
|
||||
|
||||
this.notify('value');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue