forked from AuroraMiddleware/gtk
Check for successfull iterator retrieval
This commit is contained in:
parent
958f772c24
commit
18b20416e5
@ -276,10 +276,12 @@ check_level_length (GtkTreeModelFilter *filter,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int l;
|
int l;
|
||||||
|
gboolean retrieved_iter = FALSE;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (filter),
|
retrieved_iter = gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (filter),
|
||||||
&iter, level);
|
&iter, level);
|
||||||
|
g_return_if_fail (retrieved_iter);
|
||||||
l = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (filter), &iter);
|
l = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (filter), &iter);
|
||||||
g_return_if_fail (l == length);
|
g_return_if_fail (l == length);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user