Use the same function as in updateiconcache.c. (spotted by Morten

2005-04-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconcache.c (icon_name_hash): Use the same function
	as in updateiconcache.c.  (spotted by Morten Welinder)
This commit is contained in:
Matthias Clasen 2005-04-09 02:12:34 +00:00 committed by Matthias Clasen
parent 7e832a73ce
commit 7cbd85cda2
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-04-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (icon_name_hash): Use the same function
as in updateiconcache.c. (spotted by Morten Welinder)
2005-04-08 Carl Worth <cworth@cworth.org> 2005-04-08 Carl Worth <cworth@cworth.org>
* gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation

View File

@ -1,3 +1,8 @@
2005-04-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (icon_name_hash): Use the same function
as in updateiconcache.c. (spotted by Morten Welinder)
2005-04-08 Carl Worth <cworth@cworth.org> 2005-04-08 Carl Worth <cworth@cworth.org>
* gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation

View File

@ -1,3 +1,8 @@
2005-04-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (icon_name_hash): Use the same function
as in updateiconcache.c. (spotted by Morten Welinder)
2005-04-08 Carl Worth <cworth@cworth.org> 2005-04-08 Carl Worth <cworth@cworth.org>
* gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation

View File

@ -223,8 +223,8 @@ _gtk_icon_cache_has_directory (GtkIconCache *cache,
static guint static guint
icon_name_hash (gconstpointer key) icon_name_hash (gconstpointer key)
{ {
const char *p = key; const signed char *p = key;
guint h = *p; guint32 h = *p;
if (h) if (h)
for (p += 1; *p != '\0'; p++) for (p += 1; *p != '\0'; p++)