summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2002-05-24 18:38:21 +0000
committerDave Camp <campd@src.gnome.org>2002-05-24 18:38:21 +0000
commitcffb8ea32dade7798962fd9b150c13fb793be070 (patch)
treebc3076618446dc4d4565e6ee3d43f7e79aa0fb87 /gtk
parentb1db95a6fb6c2bde7d4925864c46d716f4a574ee (diff)
downloadgdk-pixbuf-cffb8ea32dade7798962fd9b150c13fb793be070.tar.gz
Built an iter directly instead of using
2002-05-24 Dave Camp <dave@ximian.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): Built an iter directly instead of using gtk_tree_model_sort_elt_get_path(), since that returns a path for the child model.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreemodelsort.c8
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);