From 55c0ee3bef80f090624478cb4522e2c62e0e821c Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Wed, 30 Aug 2000 23:38:58 +0000 Subject: Use escape function in gnome-vfs instead of one in Nautilus. * libnautilus-extensions/nautilus-directory.c: (construct_private_metafile_uri), (nautilus_self_check_directory): * libnautilus-extensions/nautilus-icon-factory.c: (make_thumbnail_path): * libnautilus-extensions/nautilus-link.c: (make_local_path): Use escape function in gnome-vfs instead of one in Nautilus. * libnautilus-extensions/nautilus-string.h: * libnautilus-extensions/nautilus-string.c: (nautilus_str_strip_chr), (nautilus_str_double_underscores), (nautilus_str_middle_truncate): Use g_new instead of g_malloc. Helps get rid of silly "sizeof (char)" business. Remove nautilus_str_escape_slashes. --- libnautilus-extensions/nautilus-link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libnautilus-extensions/nautilus-link.c') diff --git a/libnautilus-extensions/nautilus-link.c b/libnautilus-extensions/nautilus-link.c index fd8cb3653..d3130a503 100644 --- a/libnautilus-extensions/nautilus-link.c +++ b/libnautilus-extensions/nautilus-link.c @@ -278,7 +278,7 @@ make_local_path (const char *image_uri) * URIs with slashes in it and other cases like that. */ /* FIXME bugzilla.eazel.com 2493: Why the +7 below? This seems totally wrong. */ - escaped_uri = nautilus_str_escape_slashes (unescaped_uri + 7); + escaped_uri = gnome_vfs_escape_slashes (unescaped_uri + 7); g_free (unescaped_uri); local_directory_path = g_strconcat @@ -288,6 +288,7 @@ make_local_path (const char *image_uri) /* We must create the directory if it doesn't exist. */ /* FIXME bugzilla.eazel.com 2494: Is it OK to ignore the error here? */ + /* FIXME: This needs to make the path into a URI if it's going to use gnome_vfs. */ gnome_vfs_make_directory (local_directory_path, REMOTE_ICON_DIR_PERMISSIONS); local_file_path = nautilus_make_path (local_directory_path, escaped_uri); -- cgit v1.2.1