[gnome-shell] Wanda: don't recreate the texture if the icon size doesn't change
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Wanda: don't recreate the texture if the icon size doesn't change
- Date: Mon, 17 Sep 2012 17:50:52 +0000 (UTC)
commit 70c34baafb64b05459e785d1cffad4bb57a079ba
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Sep 16 19:35:41 2012 +0200
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 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/wanda.js b/js/ui/wanda.js
index c37ff29..378c7ad 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]