[gtk/prop-list: 3/3] Fix gtk_column_view_create_cells
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 3/3] Fix gtk_column_view_create_cells
- Date: Wed, 18 Dec 2019 20:23:17 +0000 (UTC)
commit 6675f7906fe1c4aeba15267e9bfa119a7c02abef
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 9a82daa1c7..336fc0bf1f 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -430,11 +430,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]