mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
iconview: Don't draw unallocated items
This is more a workaround for Clutter-GTK than anything else. Most of all, it makes gnome-boxes start again.
This commit is contained in:
parent
767a01448d
commit
cc057d5c4e
@ -2996,7 +2996,7 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
|
||||
GtkIconViewPrivate *priv = icon_view->priv;
|
||||
GtkCellAreaContext *context;
|
||||
|
||||
if (priv->model == NULL)
|
||||
if (priv->model == NULL || item->cell_area.width <= 0 || item->cell_area.height <= 0)
|
||||
return;
|
||||
|
||||
_gtk_icon_view_set_cell_data (icon_view, item);
|
||||
|
Loading…
Reference in New Issue
Block a user