[gnome-shell-extensions] alternative-status-menu: fix for gnome-shell master
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternative-status-menu: fix for gnome-shell master
- Date: Sat, 19 Nov 2011 13:06:52 +0000 (UTC)
commit f61af132e7982befb0e36fa400c73251a9bbbd21
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Nov 19 13:58:28 2011 +0100
alternative-status-menu: fix for gnome-shell master
gnome-shell has been ported to GDBus, and this changed some of
its internal API.
Of course, this means that alternative-status-menu no longer works
with 3.2.0.
extensions/alternative-status-menu/extension.js | 7 ++-----
.../alternative-status-menu/metadata.json.in | 2 +-
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/extensions/alternative-status-menu/extension.js b/extensions/alternative-status-menu/extension.js
index 3e542ef..6746a03 100644
--- a/extensions/alternative-status-menu/extension.js
+++ b/extensions/alternative-status-menu/extension.js
@@ -107,10 +107,7 @@ function reset(statusMenu) {
statusMenu._updateLogout();
statusMenu._updateLockScreen();
- statusMenu._presence.getStatus(Lang.bind(statusMenu, statusMenu._updateSwitch));
-
- // HACK! Obtain the IMStatusChooserItem and force a _updateUser
- statusMenu.menu._getMenuItems()[0]._updateUser();
+ statusMenu._updateSwitch(statusMenu._presence.status);
}
function enable() {
@@ -126,4 +123,4 @@ function disable() {
statusMenu.menu.removeAll();
statusMenu._createSubMenu();
reset(statusMenu);
-}
\ No newline at end of file
+}
diff --git a/extensions/alternative-status-menu/metadata.json.in b/extensions/alternative-status-menu/metadata.json.in
index 91bb82f..3c3c286 100644
--- a/extensions/alternative-status-menu/metadata.json.in
+++ b/extensions/alternative-status-menu/metadata.json.in
@@ -2,7 +2,7 @@
"uuid": "@uuid@",
"name": "Alternative Status Menu",
"description": "Replaces GNOME Shell Status Menu with one showing Suspend/Hibernate and Power Off as separate items",
- "shell-version": [ "@shell_current@", "3.2" ],
+ "shell-version": [ "@shell_current@" ],
"localedir": "@LOCALEDIR@",
"url": "@url@"
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]