windowManager: Fade windows on map

Fade in new windows instead of scaling them up from 0 to 1.
This commit is contained in:
Adel Gadllah 2010-04-02 19:44:05 +02:00
parent f262473a3f
commit f89b95c2aa

View File

@ -153,14 +153,13 @@ WindowManager.prototype = {
} }
actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER); actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
actor.set_scale(0.0, 0.0); actor.opacity = 0;
actor.show(); actor.show();
/* scale window up from 0x0 to normal size */ /* scale window up from 0x0 to normal size */
this._mapping.push(actor); this._mapping.push(actor);
Tweener.addTween(actor, Tweener.addTween(actor,
{ scale_x: 1.0, { opacity: 255,
scale_y: 1.0,
time: WINDOW_ANIMATION_TIME, time: WINDOW_ANIMATION_TIME,
transition: "easeOutQuad", transition: "easeOutQuad",
onComplete: this._mapWindowDone, onComplete: this._mapWindowDone,