diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-03-13 20:44:14 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-03-13 20:44:14 +0000 |
commit | b1b58fe3df6eade4df98bdee0c55549d71bd5c78 (patch) | |
tree | d2887e72c62d2dbf61354a8f9649a057e6398bab /gtk/gtkcellview.c | |
parent | 74fd8a025d3171b786e8e3366a63e26879aec8c0 (diff) | |
download | gtk+-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.c | 8 |
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; |