summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2009-10-05 16:21:51 (GMT)
committerAdel Gadllah <adel.gadllah@gmail.com>2009-10-05 16:54:41 (GMT)
commit6a8b50cb000bab39293d0f69a93bc5dce1c7934d (patch)
tree8d99654d77b7ab134abbb455c8191e7fac6ccc4d
parentedb50d5dc78b70df666ce962ae7924c3a3fd2151 (diff)
downloadgnome-shell-6a8b50cb000bab39293d0f69a93bc5dce1c7934d.tar.gz
gnome-shell-6a8b50cb000bab39293d0f69a93bc5dce1c7934d.tar.xz
Don't create multiple copies of the (+) button
Currently we recreate it every time Main.overview.show() is called, so destroy it to avoid having multiple copies floating around. https://bugzilla.gnome.org/show_bug.cgi?id=597309
-rw-r--r--js/ui/overview.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 4d5b37c..5f331a4 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -357,6 +357,10 @@ Overview.prototype = {
this._activeDisplayPane.close();
this._workspaces.hide();
+ this._addButton.actor.destroy();
+ this._addButton.actor = null;
+ this._addButton = null;
+
// Create a zoom in effect by transforming the Overview group so that
// the active workspace fills up the whole screen. The opposite
// transition is used in show().