[gnome-shell] windowManager: Fix up map effect



commit bab5a006d814086cc7959a406073e0e0676d39e6
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Apr 2 20:30:10 2010 +0200

    windowManager: Fix up map effect
    
    Update comment and set the opacity rather than scaling in _mapWindowDone,
     also as we don't have to move the anchor point's gravity for this effect.

 js/ui/windowManager.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 597e34a..2e497de 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -152,11 +152,10 @@ WindowManager.prototype = {
             return;
         }
 
-        actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
         actor.opacity = 0;
         actor.show();
-        
-        /* scale window up from 0x0 to normal size */
+
+        /* Fade window in */
         this._mapping.push(actor);
         Tweener.addTween(actor,
                          { opacity: 255,
@@ -174,8 +173,7 @@ WindowManager.prototype = {
     _mapWindowDone : function(shellwm, actor) {
         if (this._removeEffect(this._mapping, actor)) {
             Tweener.removeTweens(actor);
-            actor.set_scale(1.0, 1.0);
-            actor.move_anchor_point_from_gravity(Clutter.Gravity.NORTH_WEST);
+            actor.opacity = 255;
             shellwm.completed_map(actor);
         }
     },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]