[gnome-shell/overview-relayout: 12/22] Fake workspaces tab
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/overview-relayout: 12/22] Fake workspaces tab
- Date: Fri, 19 Nov 2010 02:14:56 +0000 (UTC)
commit 8722ed55d408a5a2112f2fffd123f782ea8f1216
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 29 09:54:16 2010 +0200
Fake workspaces tab
https://bugzilla.gnome.org/show_bug.cgi?id=634948
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 30f5d2b..4d8900f 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -454,6 +454,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]