[gnome-shell/wip/message-tray: 18/33] messageTray: Use a Lightbox to shade the window_group
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 18/33] messageTray: Use a Lightbox to shade the window_group
- Date: Thu, 16 Aug 2012 17:58:38 +0000 (UTC)
commit 3e48e0de86f948631e81bf083a1fe215b9c27ca8
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 8 19:51:31 2012 +0200
messageTray: Use a Lightbox to shade the window_group
This is a visual indication of the fact that a grab is in place.
https://bugzilla.gnome.org/show_bug.cgi?id=681392
js/ui/messageTray.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index e01892f..5bb9d67 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -17,6 +17,7 @@ const BoxPointer = imports.ui.boxpointer;
const CtrlAltTab = imports.ui.ctrlAltTab;
const GnomeSession = imports.misc.gnomeSession;
const GrabHelper = imports.ui.grabHelper;
+const Lightbox = imports.ui.lightbox;
const Main = imports.ui.main;
const PopupMenu = imports.ui.popupMenu;
const Params = imports.misc.params;
@@ -1355,6 +1356,12 @@ const MessageTray = new Lang.Class({
this._inFullscreen = false;
this._desktopClone = null;
+ this._lightbox = new Lightbox.Lightbox(global.window_group,
+ { inhibitEvents: true,
+ fadeInTime: ANIMATION_TIME,
+ fadeOutTime: ANIMATION_TIME
+ });
+
this._corner = new Clutter.Rectangle({ width: 1,
height: 1,
opacity: 0,
@@ -1880,6 +1887,8 @@ const MessageTray = new Lang.Class({
this._desktopClone.y = 0;
this._desktopClone.show();
+ this._lightbox.show();
+
Tweener.addTween(this._desktopClone,
{ y: this._desktopClone.y - this.actor.height,
time: ANIMATION_TIME,
@@ -1930,6 +1939,8 @@ const MessageTray = new Lang.Class({
geometry.height + progress);
})
});
+
+ this._lightbox.hide();
},
_onIdleMonitorWatch: function(monitor, id, userBecameIdle) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]