From 8c33adfd298e936075753cd0b3d29564c1e57d77 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 8 Apr 2012 20:35:41 +0100 Subject: [PATCH] dash: Destroy tooltip label when item is removed --- js/ui/dash.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/js/ui/dash.js b/js/ui/dash.js index 4f778785e..69caf5b02 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -168,7 +168,17 @@ const DashItemContainer = new Lang.Class({ }); }, + destroy: function() { + if (this.label) + this.label.destroy(); + + this.actor.destroy(); + }, + animateOutAndDestroy: function() { + if (this.label) + this.label.destroy(); + if (this.child == null) { this.actor.destroy(); return; @@ -691,7 +701,7 @@ const Dash = new Lang.Class({ if (Main.overview.visible) item.animateOutAndDestroy(); else - item.actor.destroy(); + item.destroy(); } this._adjustIconSize();