[gnome-shell] Bug 588173 - No remove button on the first workspace
- From: Sander Dijkhuis <sanderd src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Bug 588173 - No remove button on the first workspace
- Date: Tue, 14 Jul 2009 12:58:41 +0000 (UTC)
commit 2aea9c59a4795761c83f82ca8ffa51bd62abc363
Author: Sander Dijkhuis <sander dijkhuis gmail com>
Date: Tue Jul 14 14:37:21 2009 +0200
Bug 588173 - No remove button on the first workspace
If there is only one workspace and it's empty, it should
not get a remove button. Add a workspaceNum != 0 check to
workspaces.js.
js/ui/workspaces.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js
index 082545a..e703294 100644
--- a/js/ui/workspaces.js
+++ b/js/ui/workspaces.js
@@ -321,6 +321,7 @@ Workspace.prototype = {
updateRemovable : function() {
let global = Shell.Global.get();
let removable = (this._windows.length == 1 /* just desktop */ &&
+ this.workspaceNum != 0 &&
this.workspaceNum == global.screen.n_workspaces - 1);
if (removable) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]