diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:07:10 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:07:10 +0800 |
commit | 4ef8f15056956ac280c4d280a65a7b652e53f343 (patch) | |
tree | ad2390e07474553fa1ca7a21093d7a81c452ab91 /embed/ephy-favicon-cache.c | |
parent | 63ebb9b56b751947be813b6756a11d3a96235273 (diff) | |
download | gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar.gz gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar.bz2 gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar.lz gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar.xz gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.tar.zst gsoc2013-epiphany-4ef8f15056956ac280c4d280a65a7b652e53f343.zip |
Use GChecksum to calculate the MD5 of favicons.
svn path=/branches/gnome-2-22/; revision=8146
Diffstat (limited to 'embed/ephy-favicon-cache.c')
-rw-r--r-- | embed/ephy-favicon-cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c index 550c0937b..708423652 100644 --- a/embed/ephy-favicon-cache.c +++ b/embed/ephy-favicon-cache.c @@ -40,7 +40,6 @@ #include <glib/gstdio.h> #include <gio/gio.h> -#include <libgnomeui/libgnomeui.h> #define EPHY_FAVICON_CACHE_XML_ROOT (const xmlChar *)"ephy_favicons_cache" #define EPHY_FAVICON_CACHE_XML_VERSION (const xmlChar *)"1.1" @@ -588,7 +587,7 @@ ephy_favicon_cache_get (EphyFaviconCache *cache, { char *filename; - filename = gnome_thumbnail_md5 (url); + filename = g_compute_checksum_for_string (G_CHECKSUM_MD5, url, -1); icon = ephy_node_new (cache->priv->db); ephy_node_set_property_string (icon, @@ -654,7 +653,7 @@ ephy_favicon_cache_get (EphyFaviconCache *cache, char *new_pix_file, *urlhash; GValue value = { 0, }; - urlhash = gnome_thumbnail_md5 (url); + urlhash = g_compute_checksum_for_string (G_CHECKSUM_MD5, url, -1); new_pix_file = g_build_filename (cache->priv->directory, urlhash, NULL); g_value_init (&value, G_TYPE_STRING); |