columview: Fix cell creation

We were getting lost in the columnview internal
structure here. The rows are children of the listview,
not of the columnview itself.
This commit is contained in:
Matthias Clasen 2020-06-19 11:40:54 -04:00
parent 3141eaecd0
commit 55936087e0

View File

@ -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))
{