[gnome-shell] [StartupNotification] Do not bounce the animation



commit 69fde6822c0cbca2e2eacd685f6acc1caa0c54f6
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jul 6 19:56:40 2010 +0200

    [StartupNotification] Do not bounce the animation
    
    The spinner animation moving from left-to-right to indicate a starting
    application changes its direction on reaching the end of the movement.
    Instead, keep the spinner at the right of the app name until startup
    has finished.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623687

 js/ui/panel.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index e2d493c..901d6ed 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -341,10 +341,8 @@ AppMenuButton.prototype = {
             this._stopAnimation(true);
             return false;
         }
-        if (this._animationStep < 0 || this._animationStep > 1) {
-            this._direction = -this._direction;
-            this._animationStep += 2 * this._direction;
-        }
+        if (this._animationStep > 1)
+            this._animationStep = 1;
         this._clipWidth = this._label.actor.width - (this._label.actor.width - AppDisplay.APPICON_SIZE / 2) * (1 - this._animationStep);
         if (this.actor.get_direction() == St.TextDirection.LTR) {
             this._label.actor.set_clip(0, 0, this._clipWidth + this._shadow.width, this.actor.height);



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