summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-03-13 20:44:14 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-03-13 20:44:14 +0000
commitb1b58fe3df6eade4df98bdee0c55549d71bd5c78 (patch)
treed2887e72c62d2dbf61354a8f9649a057e6398bab /gtk/gtkcellview.c
parent74fd8a025d3171b786e8e3366a63e26879aec8c0 (diff)
downloadgtk+-b1b58fe3df6eade4df98bdee0c55549d71bd5c78.tar.gz
Don't do anything beyond clearing to the background if there is no active
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything beyond clearing to the background if there is no active row. (#137066, reported by Owen Taylor)
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 5f8465a803..c0efb0c1b3 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -437,9 +437,11 @@ gtk_cell_view_expose (GtkWidget *widget,
g_object_unref (G_OBJECT (gc));
}
- /* set cell data (if applicable) */
- if (cellview->priv->displayed_row)
- gtk_cell_view_set_cell_data (cellview);
+ if (!cellview->priv->displayed_row)
+ return FALSE;
+
+ /* set cell data */
+ gtk_cell_view_set_cell_data (cellview);
/* render cells */
area = widget->allocation;