[gtk/prop-list: 4/83] Fix gtk_column_view_create_cells



commit 4a2b56a7c6d77549cb7834750ef12d758bf52ddb
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 18 12:51:53 2019 -0500

    Fix gtk_column_view_create_cells
    
    This code was assuming that the listitem widgets
    are children of the column view, which they aren't.

 gtk/gtkcolumnviewcolumn.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index 81b88a725a..a62ea4b963 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -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))
     {


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