forked from AuroraMiddleware/gtk
Avoid a warning if GtkCellView has no model
This commit is contained in:
parent
46903a9100
commit
cfe909848d
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user