various: update for gnome-shell changes

The panel changed the way it builds the buttons outside the system
status area.
- Update alternative-status-menu to the new way of accessing panel
  contents.
- Update apps-menu to the new way of adding items to the panel.
- Move places-menu to the left now that it is possible without hacks.
This commit is contained in:
Giovanni Campagna
2012-09-05 00:48:06 +02:00
parent c5181cda46
commit fdad0263ec
3 changed files with 4 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ function init(metadata) {
}
function enable() {
let statusMenu = Main.panel._statusArea.userMenu;
let statusMenu = Main.panel.statusArea.userMenu;
settings = Convenience.getSettings();
@@ -96,7 +96,7 @@ function enable() {
}
function disable() {
let statusMenu = Main.panel._statusArea.userMenu;
let statusMenu = Main.panel.statusArea.userMenu;
let children = statusMenu.menu._getMenuItems();
let index = children.length;

View File

@@ -99,9 +99,7 @@ let appsMenuButton;
function enable() {
appsMenuButton = new ApplicationsButton();
Main.panel._leftBox.insert_child_at_index(appsMenuButton.actor, 1);
Main.panel._leftBox.child_set(appsMenuButton.actor, { y_fill : true } );
Main.panel._menus.addMenu(appsMenuButton.menu);
Main.panel.addToStatusArea('apps-menu', appsMenuButton, 1, 'left');
}
function disable() {

View File

@@ -162,7 +162,7 @@ let _indicator;
function enable() {
_indicator = new PlacesMenu;
Main.panel.addToStatusArea('places-menu', _indicator);
Main.panel.addToStatusArea('places-menu', _indicator, 1, 'left');
}
function disable() {