[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
This commit is contained in:
Dan Winship 2010-02-12 12:33:00 -05:00
parent e86c821878
commit 77fe0db623

View File

@ -379,13 +379,17 @@ MessageTray.prototype = {
this._notificationTimeoutId = 0; this._notificationTimeoutId = 0;
this.actor.show(); 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 }); Main.chrome.trackActor(this._notificationBin, { affectsStruts: false });
global.connect('screen-size-changed', global.connect('screen-size-changed',
Lang.bind(this, this._setSizePosition)); Lang.bind(this, this._setSizePosition));
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._sources = {};
this._icons = {}; this._icons = {};
}, },
@ -524,7 +528,7 @@ MessageTray.prototype = {
} }
// Summary // Summary
let summarySummoned = this._pointerInSummary; let summarySummoned = this._pointerInSummary || Main.overview.visible;
let summaryPinned = this._summaryTimeoutId != 0 || this._pointerInTray || summarySummoned; let summaryPinned = this._summaryTimeoutId != 0 || this._pointerInTray || summarySummoned;
let notificationsVisible = (this._notificationState == State.SHOWING || let notificationsVisible = (this._notificationState == State.SHOWING ||
this._notificationState == State.SHOWN); this._notificationState == State.SHOWN);