[Xfce4-commits] [apps/xfdashboard] 02/10: Create better hash value for GIcons in XfdashboardImageContent
noreply at xfce.org
noreply at xfce.org
Wed Jan 6 16:31:36 CET 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit e4950462b351e2398c4fc67a77f647b3bc753d4b
Author: Stephan Haller <nomad at froevel.de>
Date: Wed Jan 6 12:35:41 2016 +0100
Create better hash value for GIcons in XfdashboardImageContent
---
xfdashboard/image-content.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xfdashboard/image-content.c b/xfdashboard/image-content.c
index 40dc01e..688a68a 100644
--- a/xfdashboard/image-content.c
+++ b/xfdashboard/image-content.c
@@ -1340,7 +1340,7 @@ ClutterContent* xfdashboard_image_content_new_for_gicon(GIcon *inIcon, gint inSi
g_return_val_if_fail(inSize>0, NULL);
/* Check if we have a cache image for icon otherwise create image instance */
- key=g_strdup_printf("%s,%d", g_icon_to_string(inIcon), inSize);
+ key=g_strdup_printf("gicon:%s-%u,%d", G_OBJECT_TYPE_NAME(inIcon), g_icon_hash(inIcon), inSize);
if(!key)
{
g_warning(_("Could not create key for gicon '%s' at size %u"), g_icon_to_string(inIcon), inSize);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list