workspaces-view: Simplify handling of removed workspaces

Workspaces used to contain the desktop background, so when a
workspace was removed, we animated its actor to an off-screen
position before destroying it. As the background has been
removed a while ago, we can destroy the actor directly.

https://bugzilla.gnome.org/show_bug.cgi?id=645031
This commit is contained in:
Florian Müllner
2011-06-01 04:23:12 +02:00
parent 0ae1556b94
commit 45c1a9eafb
2 changed files with 6 additions and 55 deletions

View File

@ -641,16 +641,6 @@ Workspace.prototype = {
return this._windows.length == 0;
},
/**
* setReactive:
* @reactive: %true iff the workspace should be reactive
*
* Set the workspace (desktop) reactive
**/
setReactive: function(reactive) {
this.actor.reactive = reactive;
},
// Only use this for n <= 20 say
_factorial: function(n) {
let result = 1;