From 70c34baafb64b05459e785d1cffad4bb57a079ba Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 16 Sep 2012 19:35:41 +0200 Subject: [PATCH] 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 --- js/ui/wanda.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/ui/wanda.js b/js/ui/wanda.js index c37ff2992..378c7ad50 100644 --- a/js/ui/wanda.js +++ b/js/ui/wanda.js @@ -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) {