aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-favicon-cache.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-12-20 01:50:06 +0800
committerGustavo Noronha Silva <gns@gnome.org>2009-12-20 08:20:59 +0800
commit40c0d516e3cac6d41a60eaf8d939522572b8e2c2 (patch)
tree1f35622b673831d6840c6115e125bafdef2b2612 /embed/ephy-favicon-cache.c
parent89b27d4d5db3ea30c6d8487904fd08796730c82c (diff)
downloadgsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar.gz
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar.bz2
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar.lz
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar.xz
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.tar.zst
gsoc2013-epiphany-40c0d516e3cac6d41a60eaf8d939522572b8e2c2.zip
Finish porting the favicon cache to WebKitDownload
Diffstat (limited to 'embed/ephy-favicon-cache.c')
-rw-r--r--embed/ephy-favicon-cache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 7cb398dfc..2a347ec64 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -29,7 +29,6 @@
#include <sys/stat.h>
#include "ephy-embed-shell.h"
-#include "ephy-embed-persist.h"
#include "ephy-file-helpers.h"
#include "ephy-node-common.h"
#include "ephy-node.h"
@@ -38,6 +37,7 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
+#include <webkit/webkit.h>
#define EPHY_FAVICON_CACHE_XML_ROOT (const xmlChar *)"ephy_favicons_cache"
#define EPHY_FAVICON_CACHE_XML_VERSION (const xmlChar *)"1.1"
@@ -60,7 +60,7 @@
static void ephy_favicon_cache_class_init (EphyFaviconCacheClass *klass);
static void ephy_favicon_cache_init (EphyFaviconCache *cache);
static void ephy_favicon_cache_finalize (GObject *object);
-static gboolean kill_download (const char*, EphyEmbedPersist*, EphyFaviconCache*);
+static gboolean kill_download (const char*, WebKitDownload*, EphyFaviconCache*);
#define EPHY_FAVICON_CACHE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_FAVICON_CACHE, EphyFaviconCachePrivate))
@@ -362,17 +362,17 @@ ephy_favicon_cache_init (EphyFaviconCache *cache)
static gboolean
kill_download (const char *key,
- EphyEmbedPersist *persist,
+ WebKitDownload *download,
EphyFaviconCache *cache)
{
EphyNode *icon;
/* disconnect "completed" and "cancelled" callbacks */
g_signal_handlers_disconnect_matched
- (persist,G_SIGNAL_MATCH_DATA , 0, 0, NULL, NULL, cache);
+ (download,G_SIGNAL_MATCH_DATA , 0, 0, NULL, NULL, cache);
/* now cancel the download */
- ephy_embed_persist_cancel (persist);
+ webkit_download_cancel (download);
icon = g_hash_table_lookup (cache->priv->icons_hash, key);
g_return_val_if_fail (EPHY_IS_NODE (icon), TRUE);