[gtk/prop-list: 34/70] Fix gtk_column_view_create_cells
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 34/70] Fix gtk_column_view_create_cells
- Date: Sun, 22 Dec 2019 03:26:19 +0000 (UTC)
commit bedddfc188b6428aa6ec32f9cea8ec60667e803a
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 d391603013..d113b5c9dd 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -436,11 +436,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]