epiphany r8146 - in branches/gnome-2-22: . embed



Author: chpe
Date: Fri Mar 28 15:07:10 2008
New Revision: 8146
URL: http://svn.gnome.org/viewvc/epiphany?rev=8146&view=rev

Log:
Use GChecksum to calculate the MD5 of favicons.



Modified:
   branches/gnome-2-22/configure.ac
   branches/gnome-2-22/embed/ephy-favicon-cache.c

Modified: branches/gnome-2-22/configure.ac
==============================================================================
--- branches/gnome-2-22/configure.ac	(original)
+++ branches/gnome-2-22/configure.ac	Fri Mar 28 15:07:10 2008
@@ -98,7 +98,7 @@
 	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

Modified: branches/gnome-2-22/embed/ephy-favicon-cache.c
==============================================================================
--- branches/gnome-2-22/embed/ephy-favicon-cache.c	(original)
+++ branches/gnome-2-22/embed/ephy-favicon-cache.c	Fri Mar 28 15:07:10 2008
@@ -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 @@
 	{
 		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 @@
 		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);



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