Revert "gridview: GC tiles first"
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 May 2023 23:26:12 +0000 (19:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 20 May 2023 16:25:33 +0000 (12:25 -0400)
This reverts commit e121a5ca6f761fc4433187bf1ad13a093ede205d.

The tile that was causing the critical in #5836
(what that commit was about) was a FILLER, and we
are getting rid of FILLER tiles here. Which will
avoid the issue in a more elegant way.

gtk/gtkgridview.c

index ea2701d86c952ebc7ddbf32d080bf0f17f5dcd93..94307af5244ab73a736e9f386445161b9f2fe6a3 100644 (file)
@@ -756,14 +756,8 @@ gtk_grid_view_size_allocate (GtkWidget *widget,
   min_row_height = ceil ((double) height / GTK_GRID_VIEW_MAX_VISIBLE_ROWS);
   gtk_list_base_get_border_spacing (GTK_LIST_BASE (self), &xspacing, &yspacing);
 
-  /* before we start: gc tiles */
-  for (tile = gtk_list_tile_gc (self->item_manager, gtk_list_item_manager_get_first (self->item_manager));
-     tile != NULL && tile->type == GTK_LIST_TILE_FILLER;
-     tile = gtk_list_tile_gc (self->item_manager, tile))
-    {};
-
   /* step 0: exit early if list is empty */
-  tile = gtk_list_item_manager_get_first (self->item_manager);
+  tile = gtk_list_tile_gc (self->item_manager, gtk_list_item_manager_get_first (self->item_manager));
   if (tile == NULL)
     {
       gtk_list_base_allocate (GTK_LIST_BASE (self));