nautilus-03-ftp-rename.diff revision 12125
12125N/A--- nautilus-2.21.1/libnautilus-private/nautilus-bookmark.c-orig 2008-01-03 18:30:24.952532000 -0600
12125N/A+++ nautilus-2.21.1/libnautilus-private/nautilus-bookmark.c 2008-01-03 18:46:56.302033000 -0600
9802N/A@@ -25,6 +25,7 @@
9802N/A #include <config.h>
9802N/A #include "nautilus-bookmark.h"
9802N/A
9802N/A+#include "nautilus-file-private.h"
12125N/A #include "nautilus-file.h"
9802N/A #include <eel/eel-gdk-pixbuf-extensions.h>
9802N/A #include <eel/eel-gtk-extensions.h>
12125N/A@@ -605,10 +606,18 @@ 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. */
12125N/A path_name = g_file_get_path (bookmark->details->location);
9802N/A if (path_name == NULL) {
9802N/A+ /* It's a remote file, check for its existence. */
12125N/A+ file = nautilus_file_get_existing (bookmark->details->location);
9802N/A+ if (file == NULL) {
9802N/A+ /* Remote file does not exist, so return TRUE */
9802N/A+ return TRUE;
9802N/A+ }
9802N/A+ nautilus_file_unref (file);
9802N/A return FALSE;
9802N/A }
9802N/A