diff options
author | Michael Fleming <mfleming@src.gnome.org> | 2001-02-21 00:32:34 +0000 |
---|---|---|
committer | Michael Fleming <mfleming@src.gnome.org> | 2001-02-21 00:32:34 +0000 |
commit | 24f435d963084af68d4ecf6e07cae02326976ca5 (patch) | |
tree | 3bb2f16b4033077e5f39c7a96e6f96d093ba213e /src/nautilus-window-manage-views.c | |
parent | e70c6e46b77df64715b63847cd471bac49a5da9e (diff) | |
download | nautilus-24f435d963084af68d4ecf6e07cae02326976ca5.tar.gz |
reviewed by: <darin@eazel.com>
Part of 2057: URI's with fragments behave oddly
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_format_uri_for_display), (uris_match),
(nautilus_uris_match), (nautilus_uris_match_ignore_fragments),
(nautilus_self_check_file_utilities):
* libnautilus-extensions/nautilus-file-utilities.h:
nautilus_format_uri_for_display returns "file:" URI's if the URI
in question has a fragment, other file: URI's get translated into paths
Also no longer calls the evil gnome_vfs_unescape_string_for_display (see
bug 6694)
Also fixes bug 6722: re-entering search query results in location bar
results in error dialog
Added nautilus_uris_match_ignore_fragments function which strips
fragments before comparing. Also added test cases.
* components/tree/nautilus-tree-view.c:
(got_activation_uri_callback):
* src/nautilus-window-manage-views.c:
(viewed_file_changed_callback):
Fixed two locations that made the implicit assumption that
nautilus_file_get_uri should return a URI that's directly comparable
to the current navigation location. Other cases may still lurk.
* src/nautilus-window-menus.c:
A few calls to gnome_vfs_get_local_path_from_uri that should have
been gnome_vfs_get_uri_from_local_path. Eliminating dumb behaviour
in gnome_vfs_get_local_path_from_uri exposed them.
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r-- | src/nautilus-window-manage-views.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 06304ce68..2b65ffa46 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -463,8 +463,11 @@ viewed_file_changed_callback (NautilusFile *file, } else { new_location = nautilus_file_get_uri (file); - /* if the file was renamed, update location and/or title */ - if (!nautilus_uris_match (new_location, window->details->location)) { + /* if the file was renamed, update location and/or title + * ignore fragments in this comparison, because NautilusFile doesn't track the fragment + * we're currently viewing + */ + if (!nautilus_uris_match_ignore_fragments (new_location, window->details->location)) { g_free (window->details->location); window->details->location = new_location; |