summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2002-05-24 15:21:27 +0000
committerMichael Meeks <michael@src.gnome.org>2002-05-24 15:21:27 +0000
commit5f92272dd8513c90dc2dc468c36084f3e03242b5 (patch)
treefc400a53265a218fe294842ee3448aa19345dd25 /components
parent44e0b9a91af6c4f456ec7c41ecea2031467223e7 (diff)
downloadnautilus-5f92272dd8513c90dc2dc468c36084f3e03242b5.tar.gz
work around the aformentioned gtk+ bug, since it seems not to be being
2002-05-24 Michael Meeks <michael@ximian.com> * components/tree/nautilus-tree-view.c (row_inserted_expand_node_callback): work around the aformentioned gtk+ bug, since it seems not to be being fixed.
Diffstat (limited to 'components')
-rw-r--r--components/tree/nautilus-tree-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/tree/nautilus-tree-view.c b/components/tree/nautilus-tree-view.c
index 5a968832b..4f6ec393f 100644
--- a/components/tree/nautilus-tree-view.c
+++ b/components/tree/nautilus-tree-view.c
@@ -113,7 +113,6 @@ expand_row_if_stored (NautilusTreeView *view,
g_return_if_fail (view->details != NULL);
if (g_hash_table_lookup (view->details->expanded_uris, uri)) {
-
if (!gtk_tree_view_expand_row (
view->details->tree_widget, path, FALSE)) {
g_warning ("Error expanding row '%s' '%s'", uri,
@@ -159,6 +158,13 @@ row_inserted_expand_node_callback (GtkTreeModel *tree_model,
parent_path = gtk_tree_model_get_path (tree_model, &parent);
+ /* FIXME: this is really grim, but it works around the
+ * fact that we can't do a child_toggled before the
+ * row_insert on the child, so things get confused */
+ gtk_tree_model_row_has_child_toggled (
+ GTK_TREE_MODEL (view->details->child_model),
+ parent_path, &parent);
+
sort_path = gtk_tree_model_sort_convert_child_path_to_path
(view->details->sort_model, parent_path);