[gnome-shell/overview-relayout: 10/13] Fake workspaces tab
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/overview-relayout: 10/13] Fake workspaces tab
- Date: Mon, 11 Oct 2010 21:16:44 +0000 (UTC)
commit d7b3fe4c5d4ad5bb4df8a500abe1ee6b77d1281a
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 6d5fa60..ff2a523 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -685,6 +685,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]