diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-03-12 18:10:51 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-03-12 18:10:51 +0800 |
commit | b46cc50c0935c57676449c71e6f4101128f27ce6 (patch) | |
tree | 7ed964890aa055af1408c7f41e4bad91ce2b17ae | |
parent | 6b05ed0478c278f42f2c2cd8cae67bb8463eb451 (diff) | |
download | gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar.gz gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar.bz2 gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar.lz gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar.xz gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.tar.zst gsoc2013-epiphany-b46cc50c0935c57676449c71e6f4101128f27ce6.zip |
Use GChecksum to calculate the MD5 of favicons.
svn path=/trunk/; revision=8099
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | embed/ephy-favicon-cache.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index b90f1b020..952ee5017 100644 --- a/configure.ac +++ b/configure.ac @@ -98,7 +98,7 @@ if test "$enable_maintainer_mode" = "yes"; then GECKO_WARN_CXXFLAGS="-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth $GECKO_WARN_CXXFLAGS" fi -GLIB_REQUIRED=2.15.6 +GLIB_REQUIRED=2.16.0 GTK_REQUIRED=2.12.0 LIBXML_REQUIRED=2.6.12 LIBXSLT_REQUIRED=1.1.7 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); |