[gnome-shell] Fix icon caching - set size in cache key
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Fix icon caching - set size in cache key
- Date: Fri, 22 May 2009 12:20:50 -0400 (EDT)
commit 7af940f7ea56e58e313be9acb2f0eced83db4563
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu May 21 18:49:00 2009 -0400
Fix icon caching - set size in cache key
We need to include the icon size in the data we pass to on_pixbuf_loaded()
so that we can include it in the key we use when caching the icon
Currently we save icons in the cache at size 0 but look them up at size 48
so no caching occurs.
http://bugzilla.gnome.org/show_bug.cgi?id=583503
---
src/shell-texture-cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/shell-texture-cache.c b/src/shell-texture-cache.c
index 68aaf21..db03c0a 100644
--- a/src/shell-texture-cache.c
+++ b/src/shell-texture-cache.c
@@ -539,6 +539,7 @@ shell_texture_cache_load_gicon (ShellTextureCache *cache,
data->icon = icon;
data->icon_info = info;
data->texture = g_object_ref (texture);
+ data->width = data->height = size;
load_icon_pixbuf_async (cache, icon, info, size, NULL, on_pixbuf_loaded, data);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]