barLevel: Fix value range

The range is usually within [0, 1], but since we support overdrive
as well, the upper limit must be the maximum value we allow for
overdrive.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/670
This commit is contained in:
Florian Müllner 2019-08-07 14:33:08 +02:00 committed by Georges Basile Stavracas Neto
parent 9073debe60
commit 52c2417685

View File

@ -8,7 +8,7 @@ var BarLevel = GObject.registerClass({
'value': GObject.ParamSpec.double(
'value', 'value', 'value',
GObject.ParamFlags.READWRITE,
0, 1, 0),
0, 2, 0),
'maximum-value': GObject.ParamSpec.double(
'maximum-value', 'maximum-value', 'maximum-value',
GObject.ParamFlags.READWRITE,