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.
This commit is contained in:
Darin Adler 2000-09-21 19:43:13 +00:00
parent 33e52ab692
commit 64710d35e5
3 changed files with 13 additions and 1 deletions

View file

@ -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:

View file

@ -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));
}
}

View file

@ -1,2 +1,2 @@
#!/bin/sh
./nautilus --check
./nautilus --check --g-fatal-warnings