[gnome-shell] dash: Destroy tooltip label when item is removed



commit 8c33adfd298e936075753cd0b3d29564c1e57d77
Author: Ron Yorston <rmy pobox com>
Date:   Sun Apr 8 20:35:41 2012 +0100

    dash: Destroy tooltip label when item is removed

 js/ui/dash.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 4f77878..69caf5b 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();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]