[gnome-shell/wip/bg-fixes: 2/6] background: When updating actor content, evict old content from cache
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/bg-fixes: 2/6] background: When updating actor content, evict old content from cache
- Date: Tue, 26 Mar 2013 15:05:23 +0000 (UTC)
commit 88a1187b5d7d302db7732d1af593ff5620233b06
Author: Ray Strode <rstrode redhat com>
Date: Fri Mar 22 15:03:04 2013 -0400
background: When updating actor content, evict old content from cache
Normally backgrounds get evicted from the cache when their actor is
destroyed. If the actor changes content without destroying itself,
though, we should evict the old content from the cache, too.
https://bugzilla.gnome.org/show_bug.cgi?id=696157
js/ui/background.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index aa238e7..e95cbc0 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -372,6 +372,7 @@ const Background = new Lang.Class({
content.brightness = this._brightness;
content.vignette_sharpness = this._vignetteSharpness;
+ this._cache.removeImageContent(content);
this._images[index].content = content;
this._watchCacheFile(filename);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]