Avoid a warning if GtkCellView has no model

This commit is contained in:
Matthias Clasen 2011-01-20 22:35:09 -05:00
parent 46903a9100
commit cfe909848d

View File

@ -577,6 +577,9 @@ gtk_cell_view_request_model (GtkCellView *cellview,
GtkTreeIter iter; GtkTreeIter iter;
gboolean valid; gboolean valid;
if (!priv->model)
return;
valid = gtk_tree_model_iter_children (priv->model, &iter, parent); valid = gtk_tree_model_iter_children (priv->model, &iter, parent);
while (valid) while (valid)
{ {