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.
This commit is contained in:
Giovanni Campagna
2011-11-19 13:58:28 +01:00
parent 75617da66d
commit f61af132e7
2 changed files with 3 additions and 6 deletions
@@ -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);
}
}
@@ -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@"
}