summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-link-set.c
diff options
context:
space:
mode:
authorDarin Adler <darin@eazel.com>2000-07-19 23:34:21 +0000
committerDarin Adler <darin@src.gnome.org>2000-07-19 23:34:21 +0000
commit8bd0fdd459789d141de4f03cbbf7b46a2816a6c8 (patch)
tree5dc2a6c0bf0b0b1b3feba31141f8819082c84360 /libnautilus-private/nautilus-link-set.c
parent9486172bc0bff9faa3c49a21210f58d429da2337 (diff)
downloadnautilus-8bd0fdd459789d141de4f03cbbf7b46a2816a6c8.tar.gz
Change include style from <libtrilobite/xxx.h> to "xxx.h" to fix the
2000-07-19 Darin Adler <darin@eazel.com> * components/services/trilobite/libtrilobite/libtrilobite.h: * components/services/trilobite/libtrilobite/trilobite-root-client.c: Change include style from <libtrilobite/xxx.h> to "xxx.h" to fix the build. * libnautilus-extensions/nautilus-directory.c: (make_uri_canonical), (is_canonical_uri): Add two new elements to the canonical URI rules in here: put a "file:" in front of things that don't have a scheme, and lower-case the scheme. * libnautilus-extensions/nautilus-string.h: * libnautilus-extensions/nautilus-string.c: (nautilus_istr_has_prefix), (nautilus_istr_has_suffix): Add case-insensitive versions of these calls. These terse names are maybe a little lame; istr is not completely clear. (I guess I now wish the "nautilus_" namespace was "n_" instead, like those rad Evolution people and their bold "e_"). * components/music/nautilus-music-view.c: (is_mp3_file), (nautilus_music_view_update_from_uri): * libnautilus-extensions/nautilus-file-utilities.c: (nautilus_format_uri_for_display), (nautilus_get_local_path_from_uri): * libnautilus-extensions/nautilus-file.c: (nautilus_file_contains_text): * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file), (make_thumbnail_path), (load_specific_image): * libnautilus-extensions/nautilus-theme.c: (nautilus_theme_make_selector): * src/file-manager/fm-icon-view.c: (play_file), (preview_sound), (icon_container_preview_callback): * src/file-manager/fm-properties-window.c: (get_property_names_from_uri): * src/nautilus-location-bar.c: (try_to_expand_path): * src/nautilus-property-browser.c: (ensure_uri_is_image), (make_properties_from_directory_path): * src/nautilus-sidebar.c: (map_local_data_file), (add_command_buttons): * libnautilus-extensions/nautilus-directory-background.c: (local_data_file_to_uri): Use case-insensitive string functions when dealing with MIME types, URI schemes, or file name extensions for file types that are also used on Windows where file names are not case sensitive. * libnautilus-extensions/nautilus-string.c: (nautilus_self_check_string): * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_icon_is_different): * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_delete_items_with_uri): * src/nautilus-window-manage-views.c: (nautilus_window_reset_title_internal), (handle_go_back), (handle_go_forward), (handle_go_elsewhere): * src/nautilus-window-menus.c: (nautilus_window_add_bookmark_for_current_location): Get rid of uses of nautilus_eat_strcmp since it's yucky. * libnautilus-extensions/nautilus-debug.c: (nautilus_str_equal_with_free): Make a debug-only thing kind of like nautilus_eat_strcmp that's good for asserts. * src/nautilus-sidebar.c: (add_command_buttons): Fixed a storage leak. * libnautilus-extensions/nautilus-link-set.c: (link_set_path_name): Added a FIXME. * components/services/install/command-line/.cvsignore: * cut-n-paste-code/freetype/.cvsignore: Ignore some generated files.
Diffstat (limited to 'libnautilus-private/nautilus-link-set.c')
-rw-r--r--libnautilus-private/nautilus-link-set.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-link-set.c b/libnautilus-private/nautilus-link-set.c
index f5955d574..646d73c80 100644
--- a/libnautilus-private/nautilus-link-set.c
+++ b/libnautilus-private/nautilus-link-set.c
@@ -50,6 +50,11 @@ static char *
link_set_path_name (const char *directory_path, const char *name)
{
const char *path_start;
+
+ /* FIXME: This hack is unacceptable. Either it's a URI and the
+ * file:// must be removed with the function that does that,
+ * or it's a path, and there's no reason to remove the prefix.
+ */
if (nautilus_str_has_prefix(directory_path, "file://"))
path_start = directory_path + 7;
else