window-list: fix regression from StBoxLayout refactoring

Make sure that the workspace indicator is always packed at the
end of the window list
This commit is contained in:
Giovanni Campagna
2013-09-03 10:34:13 +02:00
parent 2b45617d6a
commit ec8f269107

View File

@@ -726,14 +726,17 @@ const WindowList = new Lang.Class({
}
}));
let indicatorsBox = new St.BoxLayout();
box.add(indicatorsBox);
this._workspaceIndicator = new WorkspaceIndicator();
box.add(this._workspaceIndicator.container);
indicatorsBox.add(this._workspaceIndicator.container, { expand: false, y_fill: false });
this._menuManager = new PopupMenu.PopupMenuManager(this);
this._menuManager.addMenu(this._workspaceIndicator.menu);
this._trayButton = new TrayButton();
box.add(this._trayButton.actor);
indicatorsBox.add(this._trayButton.actor, { expand: false });
Main.layoutManager.addChrome(this.actor, { affectsStruts: true,
trackFullscreen: true });