diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c index 708ff6cb5b..c0aaf631bb 100644 --- a/gtk/gtkcolumnviewcolumn.c +++ b/gtk/gtkcolumnviewcolumn.c @@ -519,12 +519,14 @@ gtk_column_view_column_get_allocation (GtkColumnViewColumn *self, static void gtk_column_view_column_create_cells (GtkColumnViewColumn *self) { + GtkListView *list; GtkWidget *row; if (self->first_cell) return; - for (row = gtk_widget_get_first_child (GTK_WIDGET (self->view)); + list = gtk_column_view_get_list_view (GTK_COLUMN_VIEW (self->view)); + for (row = gtk_widget_get_first_child (GTK_WIDGET (list)); row != NULL; row = gtk_widget_get_next_sibling (row)) {