[gnome-shell] background: when updating image remove old one from cache



commit e98c6ff31b96dd6ab26f87e6330266a24925fb88
Author: Ray Strode <rstrode redhat com>
Date:   Thu Apr 4 16:13:07 2013 -0400

    background: when updating image remove old one from cache
    
    We're removing the new content from the cache instead of the
    old content.
    
    This commit fixes that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697395

 js/ui/background.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 4994c05..2dbde4a 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -426,7 +426,7 @@ const Background = new Lang.Class({
         content.brightness = this._brightness;
         content.vignette_sharpness = this._vignetteSharpness;
 
-        this._cache.removeImageContent(content);
+        this._cache.removeImageContent(this._images[index].content);
         this._images[index].content = content;
         this._watchCacheFile(filename);
     },


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