12054
|
1 |
diff -urN naut.orig/libnautilus-private/nautilus-bookmark.c naut.new/libnautilus-private/nautilus-bookmark.c
|
|
2 |
--- naut.orig/libnautilus-private/nautilus-bookmark.c 2008-04-07 13:33:19.366080000 +0100
|
|
3 |
+++ naut.new/libnautilus-private/nautilus-bookmark.c 2008-04-07 13:55:49.482282000 +0100
|
9060
|
4 |
@@ -25,6 +25,7 @@
|
|
5 |
#include <config.h>
|
|
6 |
#include "nautilus-bookmark.h"
|
|
7 |
|
|
8 |
+#include "nautilus-file-private.h"
|
11383
|
9 |
#include "nautilus-file.h"
|
9060
|
10 |
#include <eel/eel-gdk-pixbuf-extensions.h>
|
|
11 |
#include <eel/eel-gtk-extensions.h>
|
12054
|
12 |
@@ -607,9 +608,17 @@
|
9060
|
13 |
{
|
|
14 |
char *path_name;
|
|
15 |
gboolean exists;
|
|
16 |
+ NautilusFile *file;
|
|
17 |
|
|
18 |
/* Convert to a path, returning FALSE if not local. */
|
12054
|
19 |
if (!g_file_is_native (bookmark->details->location)) {
|
|
20 |
+ /* It's a remote file, check for its existance */
|
11383
|
21 |
+ file = nautilus_file_get_existing (bookmark->details->location);
|
9060
|
22 |
+ if (file == NULL) {
|
12054
|
23 |
+ /* Remote files does not exist, so return TRUE */
|
9060
|
24 |
+ return TRUE;
|
12054
|
25 |
+ }
|
9060
|
26 |
+ nautilus_file_unref (file);
|
|
27 |
return FALSE;
|
|
28 |
}
|
12054
|
29 |
path_name = g_file_get_path (bookmark->details->location);
|