[gtk/matthiasc/for-master: 49/49] columview: Fix cell creation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 49/49] columview: Fix cell creation
- Date: Fri, 19 Jun 2020 15:44:03 +0000 (UTC)
commit 55936087e0e4ad1bbc6c03040f9c0c7536636280
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 19 11:40:54 2020 -0400
columview: Fix cell creation
We were getting lost in the columnview internal
structure here. The rows are children of the listview,
not of the columnview itself.
gtk/gtkcolumnviewcolumn.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index 708ff6cb5b..c0aaf631bb 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -519,12 +519,14 @@ gtk_column_view_column_get_allocation (GtkColumnViewColumn *self,
static void
gtk_column_view_column_create_cells (GtkColumnViewColumn *self)
{
+ GtkListView *list;
GtkWidget *row;
if (self->first_cell)
return;
- for (row = gtk_widget_get_first_child (GTK_WIDGET (self->view));
+ list = gtk_column_view_get_list_view (GTK_COLUMN_VIEW (self->view));
+ for (row = gtk_widget_get_first_child (GTK_WIDGET (list));
row != NULL;
row = gtk_widget_get_next_sibling (row))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]