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
This commit is contained in:
Adel Gadllah 2009-10-05 18:21:51 +02:00
parent edb50d5dc7
commit 6a8b50cb00

View File

@ -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().