Wanda: don't recreate the texture if the icon size doesn't change

Wanda flickers if the animation is recreated, but we don't need to if
the size doesn't change (as we're not affected by icon theme changes).

https://bugzilla.gnome.org/show_bug.cgi?id=684154
This commit is contained in:
Giovanni Campagna 2012-09-16 19:35:41 +02:00
parent e71c016477
commit 70c34baafb

View File

@ -77,11 +77,16 @@ const WandaIcon = new Lang.Class({
}
}));
this._i = 0;
return this._animations;
},
_createIconTexture: function(size) {
if (size == this.iconSize)
return;
this.parent(size);
},
_update: function() {
let n = this._animations.get_n_children();
if (n == 0) {