messageTray: Fix condition for adding the tray to CtrlAltTab

With the current condition, we wrongly add the message tray to
CtrlAltTab if we start up locked or as greeter.

https://bugzilla.gnome.org/show_bug.cgi?id=708380
This commit is contained in:
Florian Müllner 2013-09-19 16:00:35 +02:00
parent 02c99e4b25
commit c8a07dd612

View File

@ -1805,8 +1805,9 @@ const MessageTray = new Lang.Class({
}, },
_sessionUpdated: function() { _sessionUpdated: function() {
if ((Main.sessionMode.isLocked || Main.sessionMode.isGreeter) && this._inCtrlAltTab) { if (Main.sessionMode.isLocked || Main.sessionMode.isGreeter) {
Main.ctrlAltTabManager.removeGroup(this._summary); if (this._inCtrlAltTab)
Main.ctrlAltTabManager.removeGroup(this._summary);
this._inCtrlAltTab = false; this._inCtrlAltTab = false;
} else if (!this._inCtrlAltTab) { } else if (!this._inCtrlAltTab) {
Main.ctrlAltTabManager.addGroup(this._summary, _("Message Tray"), 'user-available-symbolic', Main.ctrlAltTabManager.addGroup(this._summary, _("Message Tray"), 'user-available-symbolic',