[sushi] mainwindow: fade out the toolbar too on quit



commit 0fb833996785442628983a5e70a09ad545a6a7e7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 27 17:04:14 2011 -0400

    mainwindow: fade out the toolbar too on quit

 src/js/ui/mainWindow.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 948db12..1e6a78b 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -517,6 +517,14 @@ MainWindow.prototype = {
     },
 
     _fadeOutWindow : function() {
+        if (this._toolbarId) {
+            this._removeToolbarTimeout();
+            Tweener.addTween(this._toolbarActor,
+                             { opacity: 0,
+                               time: 0.15,
+                               transition: 'easeOutQuad' });
+        }
+
         Tweener.addTween(this._background,
                          { opacity: 0,
                            time: 0.15,



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