Revert "userMenu: Don't update the presence icon immediately"

This reverts commit f1ca96bbf0.
We're moving towards atomic panel upgrade, so we don't need this.

https://bugzilla.gnome.org/show_bug.cgi?id=683526
This commit is contained in:
Giovanni Campagna
2012-09-06 21:21:33 +02:00
parent 10da35cbef
commit 657887b241
3 changed files with 2 additions and 35 deletions

View File

@ -574,8 +574,6 @@ const UserMenuButton = new Lang.Class({
Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
this._sessionUpdated();
this.connect('thawed', Lang.bind(this, this._onThawed));
},
_sessionUpdated: function() {
@ -668,9 +666,6 @@ const UserMenuButton = new Lang.Class({
},
_updatePresenceIcon: function(accountMgr, presence, status, message) {
if (this.frozen)
return;
if (Main.sessionMode.isLocked)
this._iconBox.child = this._lockedIcon;
else if (presence == Tp.ConnectionPresenceType.AVAILABLE)
@ -803,10 +798,6 @@ const UserMenuButton = new Lang.Class({
this._presence.status = status;
},
_onThawed: function() {
this._updatePresenceIcon();
},
_onMyAccountActivate: function() {
Main.overview.hide();
let app = Shell.AppSystem.get_default().lookup_setting('gnome-user-accounts-panel.desktop');