layout: Use translation_y for panel animation

The anchor point is deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=689537
This commit is contained in:
Jasper St. Pierre 2012-12-03 15:45:27 -05:00
parent d50c3e6c67
commit 49fa0ddebc

View File

@ -342,7 +342,7 @@ const LayoutManager = new Lang.Class({
}, },
_startupAnimation: function() { _startupAnimation: function() {
this.panelBox.anchor_y = this.panelBox.height; this.panelBox.translation_y = -this.panelBox.height;
let plymouthTransitionRunning = false; let plymouthTransitionRunning = false;
@ -378,7 +378,7 @@ const LayoutManager = new Lang.Class({
} }
Tweener.addTween(this.panelBox, Tweener.addTween(this.panelBox,
{ anchor_y: 0, { translation_y: 0,
time: STARTUP_ANIMATION_TIME, time: STARTUP_ANIMATION_TIME,
transition: 'easeOutQuad', transition: 'easeOutQuad',
onComplete: this._startupAnimationComplete, onComplete: this._startupAnimationComplete,