barLevel: Use setters instead of methods

Switching to getters/setters make the code suitable for using
with Tweener and as GObject properties, both of which we'll
do soon enough.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/385
This commit is contained in:
Florian Müllner
2019-07-25 17:33:00 +02:00
parent 5545e84430
commit b970ee7293
4 changed files with 26 additions and 15 deletions

View File

@ -58,6 +58,6 @@ var Indicator = class extends PanelMenu.SystemIndicator {
let visible = this._proxy.Brightness >= 0;
this._item.visible = visible;
if (visible)
this._slider.setValue(this._proxy.Brightness / 100.0);
this._slider.value = this._proxy.Brightness / 100.0;
}
};