Fix gtk_column_view_create_cells

This code was assuming that the listitem widgets
are children of the column view, which they aren't.
This commit is contained in:
Matthias Clasen
2019-12-18 12:51:53 -05:00
parent 51e2a51dfd
commit cc39cc2e8d

View File

@@ -387,11 +387,14 @@ static void
gtk_column_view_column_create_cells (GtkColumnViewColumn *self)
{
GtkWidget *row;
GtkWidget *list;
if (self->first_cell)
return;
for (row = gtk_widget_get_first_child (GTK_WIDGET (self->view));
list = GTK_WIDGET (gtk_column_view_get_list_view (self->view));
for (row = gtk_widget_get_first_child (list);
row != NULL;
row = gtk_widget_get_next_sibling (row))
{