[gnome-shell-extensions] alternative-status-menu: fix enable and disable
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternative-status-menu: fix enable and disable
- Date: Thu, 8 Sep 2011 22:11:00 +0000 (UTC)
commit b113e9162e6fd51fc98d5f6cbac17c9e037184c2
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Sep 9 00:08:49 2011 +0200
alternative-status-menu: fix enable and disable
In current GNOME Shell master, there are some more things that
we need to update on enable/disable. Also, the Do Not Disturb
item was changed to Notifications, and the meaning flipped.
extensions/alternative-status-menu/extension.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/extensions/alternative-status-menu/extension.js b/extensions/alternative-status-menu/extension.js
index 09d0c4a..df67519 100644
--- a/extensions/alternative-status-menu/extension.js
+++ b/extensions/alternative-status-menu/extension.js
@@ -41,10 +41,10 @@ function createSubMenu() {
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);
@@ -106,7 +106,11 @@ function reset(statusMenu) {
statusMenu._updateSwitchUser();
statusMenu._updateLogout();
statusMenu._updateLockScreen();
- statusMenu._presence.getStatus(Lang.bind(statusMenu, statusMenu._updatePresenceIcon));
+
+ statusMenu._presence.getStatus(Lang.bind(statusMenu, statusMenu._updateSwitch));
+
+ // HACK! Obtain the IMStatusChooserItem and force a _updateUser
+ statusMenu.menu._getMenuItems()[0]._updateUser();
}
function enable() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]