Make the workspaces view a temporary "widget", rather than having it always

around

svn path=/trunk/; revision=124
This commit is contained in:
Dan Winship
2008-12-15 20:48:59 +00:00
parent 98860733bb
commit 249e65ee30
2 changed files with 14 additions and 22 deletions

View File

@ -35,19 +35,15 @@ function Workspaces(x, y, width, height) {
Workspaces.prototype = {
_init : function(x, y, width, height) {
this._group = new Clutter.Group();
this.actor = new Clutter.Group();
this._x = x;
this._y = y;
this._width = width;
this._height = height;
this._workspaces = [];
},
show : function() {
let global = Shell.Global.get();
let windows = global.get_windows();
let activeWorkspace = global.screen.get_active_workspace_index();
@ -57,7 +53,7 @@ Workspaces.prototype = {
this._workspaces = [];
for (let w = 0; w < global.screen.n_workspaces; w++) {
this._workspaces[w] = new Clutter.Group();
this._group.add_actor(this._workspaces[w]);
this.actor.add_actor(this._workspaces[w]);
}
this._createDesktopActors(windows);
@ -146,8 +142,8 @@ Workspaces.prototype = {
});
}
},
hideDone : function() {
destroy : function() {
for (let w = 0; w < this._workspaces.length; w++) {
this._workspaces[w].destroy();
}