[gtk/matthiasc/for-master] columnviewcolumn: Fix visibility implementation



commit b62564fd98bec8af3ebefb78db957903fb963d9e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 1 14:45:01 2020 -0400

    columnviewcolumn: Fix visibility implementation
    
    We were not properly syncing initial visibility
    with widgets.

 gtk/gtkcolumnviewcolumn.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index 0d4cb1c234..5b61633d7a 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]