22007
|
1 |
--- nautilus-3.1.3/libnautilus-private/nautilus-bookmark.c.orig 2011-04-04 19:01:22.000000000 +0100
|
|
2 |
+++ nautilus-3.1.3/libnautilus-private/nautilus-bookmark.c 2011-07-19 15:02:20.898939378 +0100
|
|
3 |
@@ -28,6 +28,9 @@
|
|
4 |
|
9060
|
5 |
#include "nautilus-bookmark.h"
|
|
6 |
|
|
7 |
+#include "nautilus-file-private.h"
|
22007
|
8 |
+#include "nautilus-file.h"
|
|
9 |
+
|
9060
|
10 |
#include <eel/eel-gtk-extensions.h>
|
22007
|
11 |
#include <eel/eel-gtk-macros.h>
|
|
12 |
#include <eel/eel-string.h>
|
|
13 |
@@ -649,9 +652,17 @@
|
9060
|
14 |
{
|
|
15 |
char *path_name;
|
|
16 |
gboolean exists;
|
|
17 |
+ NautilusFile *file;
|
|
18 |
|
|
19 |
/* Convert to a path, returning FALSE if not local. */
|
12054
|
20 |
if (!g_file_is_native (bookmark->details->location)) {
|
|
21 |
+ /* It's a remote file, check for its existance */
|
11383
|
22 |
+ file = nautilus_file_get_existing (bookmark->details->location);
|
9060
|
23 |
+ if (file == NULL) {
|
12054
|
24 |
+ /* Remote files does not exist, so return TRUE */
|
9060
|
25 |
+ return TRUE;
|
12054
|
26 |
+ }
|
9060
|
27 |
+ nautilus_file_unref (file);
|
|
28 |
return FALSE;
|
|
29 |
}
|
12054
|
30 |
path_name = g_file_get_path (bookmark->details->location);
|