[gnome-shell] user-menu: Rename "Do Not Disturb" to "Notifications"



commit a5d0ac7955463170202875f7bf46a6b298826f7b
Author: Florian MÃllner <fmuellner gnome org>
Date:   Sun Sep 4 18:39:37 2011 +0200

    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 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index d5349ba..7a32d87 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);
     },
 



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