mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 10:45:41 +00:00
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:
parent
33e52ab692
commit
64710d35e5
|
@ -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:
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
./nautilus --check
|
||||
./nautilus --check --g-fatal-warnings
|
||||
|
|
Loading…
Reference in a new issue