Commit 9b69fe7a authored by Matthias Clasen's avatar Matthias Clasen

iconview: Fix a problem with the previous change

After commit ffef28a7,
gtk-icon-browser was spewing critical warnings when
changing sections. Avoid that by respecting the return
value of gtk_tree_model_get_iter.
parent c94993e2
...@@ -3510,8 +3510,8 @@ gtk_icon_view_row_deleted (GtkTreeModel *model, ...@@ -3510,8 +3510,8 @@ gtk_icon_view_row_deleted (GtkTreeModel *model,
if (gtk_tree_path_get_depth (path) > 1) if (gtk_tree_path_get_depth (path) > 1)
return; return;
gtk_tree_model_get_iter (model, &iter, path); if (gtk_tree_model_get_iter (model, &iter, path))
gtk_tree_model_unref_node (model, &iter); gtk_tree_model_unref_node (model, &iter);
index = gtk_tree_path_get_indices(path)[0]; index = gtk_tree_path_get_indices(path)[0];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment