From a5d0ac7955463170202875f7bf46a6b298826f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 4 Sep 2011 18:39:37 +0200 Subject: [PATCH] user-menu: Rename "Do Not Disturb" to "Notifications" At least for the foreseeable future, the gnome-session desktop presence won't be used for anything but suppressing (non-urgent) notifications. To clarify this behavior, rename the "Do Not Disturb" switch to "Notifications" (and adjust the switch logic accordingly). https://bugzilla.gnome.org/show_bug.cgi?id=652718 --- js/ui/userMenu.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index d5349bae2..7a32d8775 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -522,8 +522,8 @@ UserMenuButton.prototype = { }, _updateSwitch: function(presence, status) { - let active = status == GnomeSession.PresenceStatus.BUSY; - this._dontDisturbSwitch.setToggleState(active); + let active = status == GnomeSession.PresenceStatus.AVAILABLE; + this._notificationsSwitch.setToggleState(active); }, _updatePresenceIcon: function(accountMgr, presence, status, message) { @@ -548,10 +548,10 @@ UserMenuButton.prototype = { item.connect('activate', Lang.bind(this, this._onMyAccountActivate)); this.menu.addMenuItem(item); - item = new PopupMenu.PopupSwitchMenuItem(_("Do Not Disturb")); + item = new PopupMenu.PopupSwitchMenuItem(_("Notifications")); item.connect('activate', Lang.bind(this, this._updatePresenceStatus)); this.menu.addMenuItem(item); - this._dontDisturbSwitch = item; + this._notificationsSwitch = item; item = new PopupMenu.PopupSeparatorMenuItem(); this.menu.addMenuItem(item); @@ -594,8 +594,8 @@ UserMenuButton.prototype = { }, _updatePresenceStatus: function(item, event) { - let status = item.state ? GnomeSession.PresenceStatus.BUSY - : GnomeSession.PresenceStatus.AVAILABLE; + let status = item.state ? GnomeSession.PresenceStatus.AVAILABLE + : GnomeSession.PresenceStatus.BUSY; this._presence.setStatus(status); },