dash: hide tooltips when overview begins hiding
Otherwise the tooltip remains visible until the overview animation is completed, which is odd. https://bugzilla.gnome.org/show_bug.cgi?id=674241
This commit is contained in:
parent
6f605598de
commit
9812771dcd
@ -133,7 +133,6 @@ const DashItemContainer = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hideLabel: function () {
|
hideLabel: function () {
|
||||||
this.label.opacity = 255;
|
|
||||||
Tweener.addTween(this.label,
|
Tweener.addTween(this.label,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
time: DASH_ITEM_LABEL_HIDE_TIME,
|
time: DASH_ITEM_LABEL_HIDE_TIME,
|
||||||
@ -459,6 +458,13 @@ const Dash = new Lang.Class({
|
|||||||
Lang.bind(this, function() {
|
Lang.bind(this, function() {
|
||||||
this._onHover(item, display)
|
this._onHover(item, display)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Main.overview.connect('hiding',
|
||||||
|
Lang.bind(this, function() {
|
||||||
|
this._labelShowing = false;
|
||||||
|
item.hideLabel();
|
||||||
|
}));
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user