[gnome-shell] baseIcon: Always recreate icon texture on style changes



commit b833aff3c826ff23bf91a7be2e194365731af864
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Mar 27 19:38:23 2012 +0200

    baseIcon: Always recreate icon texture on style changes
    
    Commit 26580f8f reintroduced an optimization on style changes to avoid
    creating icons unconditionally. As this breaks icon theme changes (for
    instance when toggling "High Contrast" in the universal access menu),
    remove it again.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672941

 js/ui/iconGrid.js |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 54b792a..ef71bc7 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -146,11 +146,6 @@ const BaseIcon = new Lang.Class({
             size = found ? len : ICON_SIZE;
         }
 
-        // don't create icons unnecessarily
-        if (size == this.iconSize &&
-            this._iconBin.child)
-            return;
-
         this._createIconTexture(size);
     }
 });



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]