diff options
author | Darin Adler <darin@src.gnome.org> | 2000-09-21 19:43:13 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-09-21 19:43:13 +0000 |
commit | 64710d35e59dccb889fde1ddfb510c3d083a2523 (patch) | |
tree | 81d0c7e44479dbbd7e0e31fc3d79418a10a4eaf9 | |
parent | 33e52ab692096fa15c950484d49d246777cb2680 (diff) | |
download | nautilus-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-- | ChangeLog | 8 | ||||
-rw-r--r-- | components/tree/nautilus-tree-model.c | 4 | ||||
-rwxr-xr-x | src/check-nautilus | 2 |
3 files changed, 13 insertions, 1 deletions
@@ -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 |