[gtk+/gtk-3-4] iconview: Don't draw unallocated items
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] iconview: Don't draw unallocated items
- Date: Fri, 11 May 2012 14:19:52 +0000 (UTC)
commit f66e835aa91b6c9d2a1a475a1324be54213e07c8
Author: Benjamin Otte <otte redhat com>
Date: Wed May 9 14:23:10 2012 +0200
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.
gtk/gtkiconview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 93367b6..b30c379 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]