dash: Destroy tooltip label when item is removed

This commit is contained in:
Ron Yorston 2012-04-08 20:35:41 +01:00 committed by Jasper St. Pierre
parent 2e8881b77c
commit 8c33adfd29

View File

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