From 7af940f7ea56e58e313be9acb2f0eced83db4563 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 21 May 2009 18:49:00 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/shell-texture-cache.c b/src/shell-texture-cache.c index 68aaf214a..db03c0a5c 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); } }