diff options
author | Damon Chaplin <damon@ximian.com> | 2002-07-02 20:40:34 +0000 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2002-07-02 20:40:34 +0000 |
commit | 0d9f4054d789dee0fc131a2cc2d2e0002ccdf69d (patch) | |
tree | 393ba012a97f3dff157b3050c1d438843666d15d | |
parent | a8d6acb028c988c07391f98be1651aeee6830c16 (diff) | |
download | nautilus-MULTIHEAD_BRANCHPOINT.tar.gz |
for .desktop files invalidate the file'sMULTIHEAD_BRANCHPOINT
2002-07-02 Damon Chaplin <damon@ximian.com>
* libnautilus-private/nautilus-file.c (rename_guts): for .desktop files
invalidate the file's NAUTILUS_FILE_ATTRIBUTE_DISPLAY_NAME attribute
rather than calling nautilus_file_changed(), since otherwise it will
just use the old display name. Fixes bug #85966.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | libnautilus-private/nautilus-file.c | 4 |
2 files changed, 11 insertions, 2 deletions
@@ -1,4 +1,11 @@ -2002-07-01 Damon Chaplin <damon@ximian.com> +2002-07-02 Damon Chaplin <damon@ximian.com> + + * libnautilus-private/nautilus-file.c (rename_guts): for .desktop files + invalidate the file's NAUTILUS_FILE_ATTRIBUTE_DISPLAY_NAME attribute + rather than calling nautilus_file_changed(), since otherwise it will + just use the old display name. Fixes bug #85966. + +2002-07-02 Damon Chaplin <damon@ximian.com> * src/file-manager/fm-list-view.c (create_and_set_up_tree_view): set the initial pixbuf column to match the initial zoom level, 25%. diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index af79d4c9b..0d8819f60 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -1032,7 +1032,9 @@ rename_guts (NautilusFile *file, g_free (uri); if (success) { - nautilus_file_changed (file); + GList attributes = { 0 }; + attributes.data = NAUTILUS_FILE_ATTRIBUTE_DISPLAY_NAME; + nautilus_file_invalidate_attributes (file, &attributes); (* callback) (file, GNOME_VFS_OK, callback_data); return; } else { |