aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c9
1 files changed, 2 insertions, 7 deletions
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);
}