8514
|
1 |
--- nautilus-2.10.1/libnautilus-private/nautilus-bookmark.c 2004-11-29 22:09:31.000000000 +0530
|
|
2 |
+++ nautilus-2.10.1-new/libnautilus-private/nautilus-bookmark.c 2005-05-26 14:08:54.670049048 +0530
|
|
3 |
@@ -25,6 +25,7 @@
|
|
4 |
#include <config.h>
|
|
5 |
#include "nautilus-bookmark.h"
|
|
6 |
|
|
7 |
+#include "nautilus-file-private.h"
|
|
8 |
#include "nautilus-icon-factory.h"
|
|
9 |
#include <eel/eel-gdk-pixbuf-extensions.h>
|
|
10 |
#include <eel/eel-gtk-extensions.h>
|
|
11 |
@@ -534,10 +535,18 @@ nautilus_bookmark_uri_known_not_to_exist
|
|
12 |
{
|
|
13 |
char *path_name;
|
|
14 |
gboolean exists;
|
|
15 |
+ NautilusFile *file;
|
|
16 |
|
|
17 |
/* Convert to a path, returning FALSE if not local. */
|
|
18 |
path_name = gnome_vfs_get_local_path_from_uri (bookmark->details->uri);
|
|
19 |
if (path_name == NULL) {
|
|
20 |
+ /* It's a remote file, check for its existence. */
|
|
21 |
+ file = nautilus_file_get_existing (bookmark->details->uri);
|
|
22 |
+ if (file == NULL) {
|
|
23 |
+ /* Remote file does not exist, so return TRUE */
|
|
24 |
+ return TRUE;
|
|
25 |
+ }
|
|
26 |
+ nautilus_file_unref (file);
|
|
27 |
return FALSE;
|
|
28 |
}
|
|
29 |
|