nautilus-03-ftp-rename.diff revision 20904
9802N/A--- nautilus-3.1.3/libnautilus-private/nautilus-bookmark.c.orig 2011-04-04 19:01:22.000000000 +0100
9802N/A+++ nautilus-3.1.3/libnautilus-private/nautilus-bookmark.c 2011-07-19 15:02:20.898939378 +0100
9802N/A@@ -28,6 +28,9 @@
9802N/A
9802N/A #include "nautilus-bookmark.h"
9802N/A
9802N/A+#include "nautilus-file-private.h"
9802N/A+#include "nautilus-file.h"
9802N/A+
9802N/A #include <eel/eel-vfs-extensions.h>
9802N/A #include <gio/gio.h>
9802N/A #include <glib/gi18n.h>
9802N/A@@ -646,9 +649,17 @@ nautilus_bookmark_uri_known_not_to_exist
9802N/A {
9802N/A char *path_name;
9802N/A gboolean exists;
9802N/A+ NautilusFile *file;
9802N/A
9802N/A /* Convert to a path, returning FALSE if not local. */
9802N/A if (!g_file_is_native (bookmark->details->location)) {
9802N/A+ /* It's a remote file, check for its existance */
9802N/A+ file = nautilus_file_get_existing (bookmark->details->location);
9802N/A+ if (file == NULL) {
9802N/A+ /* Remote files does not exist, so return TRUE */
9802N/A+ return TRUE;
9802N/A+ }
9802N/A+ nautilus_file_unref (file);
9802N/A return FALSE;
9802N/A }
path_name = g_file_get_path (bookmark->details->location);