summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-09-21 19:43:13 +0000
committerDarin Adler <darin@src.gnome.org>2000-09-21 19:43:13 +0000
commit64710d35e59dccb889fde1ddfb510c3d083a2523 (patch)
tree81d0c7e44479dbbd7e0e31fc3d79418a10a4eaf9
parent33e52ab692096fa15c950484d49d246777cb2680 (diff)
downloadnautilus-64710d35e59dccb889fde1ddfb510c3d083a2523.tar.gz
Add ref/unref to fix problem with renaming.
* components/tree/nautilus-tree-model.c: (report_node_changed): Add ref/unref to fix problem with renaming. * src/check-nautilus: Add "--g-fatal-warnings" so tests fail if there are warning messages.
-rw-r--r--ChangeLog8
-rw-r--r--components/tree/nautilus-tree-model.c4
-rwxr-xr-xsrc/check-nautilus2
3 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c22400975..18a08d311 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-09-21 Darin Adler <darin@eazel.com>
+
+ * components/tree/nautilus-tree-model.c: (report_node_changed):
+ Add ref/unref to fix problem with renaming.
+
+ * src/check-nautilus: Add "--g-fatal-warnings" so tests fail if
+ there are warning messages.
+
2000-09-21 Josh Barrow <linuxfan@ionet.net>
* icons/theme_preview.png:
diff --git a/components/tree/nautilus-tree-model.c b/components/tree/nautilus-tree-model.c
index 349bb85f0..ad71ae1ef 100644
--- a/components/tree/nautilus-tree-model.c
+++ b/components/tree/nautilus-tree-model.c
@@ -568,12 +568,16 @@ report_node_changed (NautilusTreeModel *model,
} else {
/* A move or rename - model it as a remove followed by an add */
+ gtk_object_ref (GTK_OBJECT (node));
+
report_node_removed (model, node);
g_free (node->details->uri);
node->details->uri = file_uri;
report_node_changed (model, node);
+
+ gtk_object_unref (GTK_OBJECT (node));
}
}
diff --git a/src/check-nautilus b/src/check-nautilus
index 96510e93a..c58ceb760 100755
--- a/src/check-nautilus
+++ b/src/check-nautilus
@@ -1,2 +1,2 @@
#!/bin/sh
-./nautilus --check
+./nautilus --check --g-fatal-warnings