aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-favicon-cache.c3
-rw-r--r--embed/ephy-history.c11
2 files changed, 11 insertions, 3 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 6d7269a48..0e283e229 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -291,7 +291,8 @@ ephy_favicon_cache_finalize (GObject *object)
EPHY_FAVICON_CACHE_XML_ROOT,
EPHY_FAVICON_CACHE_XML_VERSION,
NULL,
- cache->priv->icons, 0, NULL);
+ cache->priv->icons, NULL, NULL,
+ NULL);
g_free (cache->priv->xml_file);
g_free (cache->priv->directory);
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index 31873b51f..e6c8f08c9 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -256,6 +256,13 @@ remove_obsolete_pages (EphyHistory *eb)
}
}
+static gboolean
+save_filter (EphyNode *node,
+ EphyNode *page_node)
+{
+ return node != page_node;
+}
+
static void
ephy_history_save (EphyHistory *eb)
{
@@ -275,8 +282,8 @@ ephy_history_save (EphyHistory *eb)
EPHY_HISTORY_XML_VERSION,
NULL, /* comment */
eb->priv->hosts,
- 1, eb->priv->pages,
- eb->priv->pages, 0,
+ (EphyNodeFilterFunc) save_filter, eb->priv->pages,
+ eb->priv->pages, NULL, NULL,
NULL);
if (ret >=0)