summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareabox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-31 17:57:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-31 22:23:35 -0400
commit9f24b54786d8371f77f9ba0c4475ed82b2e0e68f (patch)
tree8ac32783559f12897ce4e5bbc350ed8aab77e67e /gtk/gtkcellareabox.c
parent9dd2645c4a591e154c2e1fe9e6bd5677c56e928a (diff)
downloadgtk+-9f24b54786d8371f77f9ba0c4475ed82b2e0e68f.tar.gz
Code cleanup
Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r--gtk/gtkcellareabox.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index f0a72bc2ef..7ea9851db4 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -1292,16 +1292,15 @@ gtk_cell_area_box_foreach_alloc (GtkCellArea *area,
break;
}
- g_slist_foreach (allocated_cells, (GFunc)allocated_cell_free, NULL);
- g_slist_free (allocated_cells);
+ g_slist_free_full (allocated_cells, (GDestroyNotify)allocated_cell_free);
}
static void
-gtk_cell_area_box_apply_attributes (GtkCellArea *area,
- GtkTreeModel *tree_model,
- GtkTreeIter *iter,
- gboolean is_expander,
- gboolean is_expanded)
+gtk_cell_area_box_apply_attributes (GtkCellArea *area,
+ GtkTreeModel *tree_model,
+ GtkTreeIter *iter,
+ gboolean is_expander,
+ gboolean is_expanded)
{
GtkCellAreaBox *box = GTK_CELL_AREA_BOX (area);
GtkCellAreaBoxPrivate *priv = box->priv;
@@ -1309,7 +1308,7 @@ gtk_cell_area_box_apply_attributes (GtkCellArea *area,
/* Call the parent class to apply the attributes */
GTK_CELL_AREA_CLASS
- (gtk_cell_area_box_parent_class)->apply_attributes (area, tree_model, iter,
+ (gtk_cell_area_box_parent_class)->apply_attributes (area, tree_model, iter,
is_expander, is_expanded);
/* Update visible state for cell groups */