Commit 94680cbf authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

don't "corrupt" all iterators by reversing the list after adding the

2007-10-08  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtkfilesystemmodel.c (got_root_folder_cb),
	(get_children_get_folder_cb): don't "corrupt" all iterators by
	reversing the list after adding the items.  Reversing the list isn't
	needed anyway as the order of the items in the model does not matter.
	(Fixes #327243, comment 10).


svn path=/trunk/; revision=18891
parent aed59b3e
2007-10-08 Kristian Rietveld <kris@imendio.com>
* gtk/gtkfilesystemmodel.c (got_root_folder_cb),
(get_children_get_folder_cb): don't "corrupt" all iterators by
reversing the list after adding the items. Reversing the list isn't
needed anyway as the order of the items in the model does not matter.
(Fixes #327243, comment 10).
2007-10-08 Kristian Rietveld <kris@imendio.com>
Fix #482841, patch by Karl Tomlinson.
......
......@@ -664,8 +664,6 @@ got_root_folder_cb (GtkFileSystemHandle *handle,
}
g_slist_free (roots);
model->roots = (FileModelNode *) g_slist_reverse ((GSList *)model->roots);
out:
g_object_unref (model);
g_object_unref (handle);
......@@ -1577,8 +1575,6 @@ get_children_get_folder_cb (GtkFileSystemHandle *handle,
g_slist_free (child_paths);
}
data->node->children = (FileModelNode *)g_slist_reverse ((GSList *)data->node->children);
g_signal_connect (data->node->folder, "deleted",
G_CALLBACK (deleted_callback), data->node);
g_signal_connect (data->node->folder, "files-added",
......
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