slider: fix wrong variable name for own actor

https://bugzilla.gnome.org/show_bug.cgi?id=706386
This commit is contained in:
Alejandro Piñeiro 2013-08-22 12:04:40 +02:00
parent 9720301d01
commit 3d57fd3227

View File

@ -173,7 +173,7 @@ const Slider = new Lang.Class({
if (key == Clutter.KEY_Right || key == Clutter.KEY_Left) {
let delta = key == Clutter.KEY_Right ? 0.1 : -0.1;
this._value = Math.max(0, Math.min(this._value + delta, 1));
this._slider.queue_repaint();
this.actor.queue_repaint();
this.emit('value-changed', this._value);
this.emit('drag-end');
return true;