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



commit e752193a5468bbc69c57a2de3d22c695cc6f73ba
Author: Colin Walters <walters verbum org>
Date:   Tue Mar 9 14:08:22 2010 -0500

    [StTextureCache] The requested size needs to be part of the cache key
    
    Otherwise we'll only render it once, which is clearly wrong.

 src/st/st-texture-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index ad33e52..5731ef9 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -946,7 +946,7 @@ st_texture_cache_load_gicon (StTextureCache    *cache,
   GtkIconInfo *info;
 
   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);
 
   if (create_texture_and_ensure_request (cache, key, size, &request, &texture))



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