aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-10 02:24:08 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-10 02:24:08 +0800
commit38c4250e5fa1fa0e3069b2a14985c9d439ba0916 (patch)
treeb1d864a1a1a6dc5812869cfeeb28487000678ff4
parented872a964040e709a3eade1867a85b2891beb656 (diff)
downloadgsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar.gz
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar.bz2
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar.lz
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar.xz
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.tar.zst
gsoc2013-epiphany-38c4250e5fa1fa0e3069b2a14985c9d439ba0916.zip
2004-08-09 Christian Persch <chpe@cvs.gnome.org>
* lib/egg/egg-editable-toolbar.c: (egg_editable_toolbar_deconstruct):
-rw-r--r--ChangeLog7
-rwxr-xr-xlib/egg/egg-editable-toolbar.c9
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c4e98923d..91eb53594 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2004-08-09 Christian Persch <chpe@cvs.gnome.org>
+ * lib/egg/egg-editable-toolbar.c:
+ (egg_editable_toolbar_deconstruct):
+
+ Use g_list_foreach() here.
+
+2004-08-09 Christian Persch <chpe@cvs.gnome.org>
+
* src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import):
Fix a mem leak.
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 8b0cefa4d..3e0b7e900 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -980,7 +980,7 @@ static void
egg_editable_toolbar_deconstruct (EggEditableToolbar *toolbar)
{
EggToolbarsModel *model = toolbar->priv->model;
- GList *children, *l;
+ GList *children;
g_return_if_fail (model != NULL);
@@ -991,12 +991,7 @@ egg_editable_toolbar_deconstruct (EggEditableToolbar *toolbar)
}
children = gtk_container_get_children (GTK_CONTAINER (toolbar));
-
- for (l = children; l != NULL; l = l->next)
- {
- gtk_widget_destroy (GTK_WIDGET (l->data));
- }
-
+ g_list_foreach (children, (GFunc) gtk_widget_destroy, NULL);
g_list_free (children);
}