[StTextureCache] The requested size needs to be part of the cache key

Otherwise we'll only render it once, which is clearly wrong.
This commit is contained in:
Colin Walters 2010-03-09 14:08:22 -05:00
parent 88a4256ad5
commit e752193a54

View File

@ -946,7 +946,7 @@ st_texture_cache_load_gicon (StTextureCache *cache,
GtkIconInfo *info; GtkIconInfo *info;
gicon_string = g_icon_to_string (icon); gicon_string = g_icon_to_string (icon);
key = g_strconcat (CACHE_PREFIX_GICON, gicon_string, NULL); key = g_strdup_printf ("%s%s,size=%d", CACHE_PREFIX_GICON, gicon_string, size);
g_free (gicon_string); g_free (gicon_string);
if (create_texture_and_ensure_request (cache, key, size, &request, &texture)) if (create_texture_and_ensure_request (cache, key, size, &request, &texture))