[gtk+/wip/list: 5/8] iconview: Don't draw unallocated items
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/list: 5/8] iconview: Don't draw unallocated items
- Date: Fri, 11 May 2012 02:50:02 +0000 (UTC)
commit b5dc51670442b1cfebaf712a51354bd9e7c7b217
Author: Benjamin Otte <otte redhat com>
Date: Wed May 9 14:12:24 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]