[gnome-shell/overview-relayout: 10/15] Fake workspaces tab



commit da6bb73ae19379bf6876c08054373e776dbffc12
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 29 09:54:16 2010 +0200

    Fake workspaces tab

 js/ui/viewSelector.js |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 3de0466..f4e8750 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -688,6 +688,29 @@ ViewSelector.prototype = {
 
         if (!tab.visible)
             tab.show();
+
+        // Pull a Meg Ryan:
+        if (Main.overview && Main.overview.workspaces) {
+            if (tab != this._tabs[0]) {
+                Tweener.addTween(Main.overview.workspaces.actor,
+                                 { opacity: 0,
+                                   time: 0.1,
+                                   transition: 'easeOutQuad',
+                                   onComplete: Lang.bind(this,
+                                       function() {
+                                           Main.overview.workspaces.actor.hide();
+                                           Main.overview.workspaces.actor.opacity = 255;
+                                       })
+                                });
+            } else {
+                Main.overview.workspaces.actor.opacity = 0;
+                Main.overview.workspaces.actor.show();
+                Tweener.addTween(Main.overview.workspaces.actor,
+                                 { opacity: 255,
+                                   time: 0.1,
+                                   transition: 'easeOutQuad' });
+            }
+        }
     },
 
     _switchDefaultTab: function() {



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