[gnome-shell/overview-relayout: 10/14] Fake workspaces tab
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/overview-relayout: 10/14] Fake workspaces tab
- Date: Sun, 24 Oct 2010 11:45:25 +0000 (UTC)
commit 02ba736e9089398dac3bbd16b5f58994c5713570
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 29 09:54:16 2010 +0200
Fake workspaces tab
js/ui/viewSelector.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 52304f5..8a83f9f 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -694,6 +694,28 @@ 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' });
+ }
+ }
},
_nextTab: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]