aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-01 02:03:55 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-01 02:03:55 +0800
commit7235264b18ffdbb7630360f65166c2bf44d4b42f (patch)
treef3c8b7be572cb7a602f7e92e16c6c212df86bf90
parent383b14ee06a64bcdc7ec310dc1797be1d7d6d20e (diff)
downloadgsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar.gz
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar.bz2
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar.lz
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar.xz
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.tar.zst
gsoc2013-epiphany-7235264b18ffdbb7630360f65166c2bf44d4b42f.zip
Iterate backwards over the children when removing a host.
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.
-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;