columnviewcolumn: Fix visibility implementation

We were not properly syncing initial visibility
with widgets.
This commit is contained in:
Matthias Clasen 2020-06-01 14:45:01 -04:00
parent 0266bcab7a
commit b62564fd98

View File

@ -313,11 +313,12 @@ gtk_column_view_column_get_first_cell (GtkColumnViewColumn *self)
}
void
gtk_column_view_column_add_cell (GtkColumnViewColumn *self,
gtk_column_view_column_add_cell (GtkColumnViewColumn *self,
GtkColumnViewCell *cell)
{
self->first_cell = cell;
gtk_widget_set_visible (GTK_WIDGET (cell), self->visible);
gtk_column_view_column_queue_resize (self);
}
@ -454,6 +455,7 @@ gtk_column_view_column_create_header (GtkColumnViewColumn *self)
return;
self->header = gtk_column_view_title_new (self);
gtk_widget_set_visible (self->header, self->visible);
gtk_list_item_widget_add_child (gtk_column_view_get_header_widget (self->view),
self->header);
gtk_column_view_column_queue_resize (self);