diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktreemodelsort.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index a51e67c00..fa9adccbd 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -595,11 +595,13 @@ gtk_tree_model_sort_row_inserted (GtkTreeModel *s_model, GtkTreePath *tmppath; GtkTreeIter tmpiter; - tmppath = gtk_tree_model_sort_elt_get_path (level, elt); + tmpiter.stamp = tree_model_sort->stamp; + tmpiter.user_data = level; + tmpiter.user_data2 = elt; + + tmppath = gtk_tree_model_get_path (GTK_TREE_MODEL (data), &tmpiter); if (tmppath) { - gtk_tree_model_get_iter (GTK_TREE_MODEL (data), &tmpiter, - tmppath); gtk_tree_model_row_has_child_toggled (GTK_TREE_MODEL (data), tmppath, &tmpiter); |