aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/ephy-history.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 237756c35..5bf6a1e71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-02-29 Christian Persch <chpe@cvs.gnome.org>
+ * embed/ephy-history.c: (remove_obsolete_pages):
+
+ Iterate backwards over the children when removing a host.
+
+2004-02-29 Christian Persch <chpe@cvs.gnome.org>
+
* embed/ephy-favicon-cache.c: (ephy_favicon_cache_class_init),
(kill_download), (ephy_favicon_cache_finalize),
(favicon_name_build), (favicon_download_completed_cb),
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index 3d2b2f421..300c601a0 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -231,7 +231,7 @@ remove_obsolete_pages (EphyHistory *eb)
g_date_set_time (&current_date, time (NULL));
children = ephy_node_get_children (eb->priv->pages);
- for (i = 0; i < children->len; i++)
+ for (i = children->len -1; i >= 0; i--)
{
EphyNode *kid;