Support the model-less use of GtkCellView shown in testcombo.c.

Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellview.c (gtk_cell_view_expose): Support the
	model-less use of GtkCellView shown in testcombo.c.
This commit is contained in:
Matthias Clasen
2004-03-13 23:01:49 +00:00
committed by Matthias Clasen
parent f6d1307a01
commit a636145685
6 changed files with 26 additions and 1 deletions

View File

@ -437,7 +437,7 @@ gtk_cell_view_expose (GtkWidget *widget,
g_object_unref (G_OBJECT (gc));
}
if (!cellview->priv->displayed_row)
if (cellview->priv->model && !cellview->priv->displayed_row)
return FALSE;
/* set cell data */