[gnome-shell] [MessageTray] Show the message tray in the overview



commit 77fe0db6230b4a6c0e607127e03027ee90ae804c
Author: Dan Winship <danw gnome org>
Date:   Fri Feb 12 12:33:00 2010 -0500

    [MessageTray] Show the message tray in the overview
    
    Also, make the summary area always visible when in the overview
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609765

 js/ui/messageTray.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 94c36eb..7cab843 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -379,13 +379,17 @@ MessageTray.prototype = {
         this._notificationTimeoutId = 0;
 
         this.actor.show();
-        Main.chrome.addActor(this.actor, { affectsStruts: false });
+        Main.chrome.addActor(this.actor, { affectsStruts: false,
+                                           visibleInOverview: true });
         Main.chrome.trackActor(this._notificationBin, { affectsStruts: false });
 
         global.connect('screen-size-changed',
                        Lang.bind(this, this._setSizePosition));
         this._setSizePosition();
 
+        Main.overview.connect('shown', Lang.bind(this, this._updateState));
+        Main.overview.connect('hidden', Lang.bind(this, this._updateState));
+
         this._sources = {};
         this._icons = {};
     },
@@ -524,7 +528,7 @@ MessageTray.prototype = {
         }
 
         // Summary
-        let summarySummoned = this._pointerInSummary;
+        let summarySummoned = this._pointerInSummary || Main.overview.visible;
         let summaryPinned = this._summaryTimeoutId != 0 || this._pointerInTray || summarySummoned;
         let notificationsVisible = (this._notificationState == State.SHOWING ||
                                     this._notificationState == State.SHOWN);



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