16013
|
1 |
/jds/bin/diff -uprN nautilus-2.26.3.old/libnautilus-private/nautilus-file-operations.c nautilus-2.26.3/libnautilus-private/nautilus-file-operations.c
|
|
2 |
--- nautilus-2.26.3.old/libnautilus-private/nautilus-file-operations.c 2009-04-20 11:57:19.000000000 +0100
|
|
3 |
+++ nautilus-2.26.3/libnautilus-private/nautilus-file-operations.c 2009-07-13 11:11:03.239850000 +0100
|
|
4 |
@@ -2062,41 +2062,10 @@ dir_has_files (GFile *dir)
|
11434
|
5 |
static GList *
|
|
6 |
get_trash_dirs_for_mount (GMount *mount)
|
|
7 |
{
|
|
8 |
- GFile *root;
|
|
9 |
- GFile *trash;
|
|
10 |
- char *relpath;
|
|
11 |
- GList *list;
|
|
12 |
-
|
|
13 |
- root = g_mount_get_root (mount);
|
|
14 |
- if (root == NULL) {
|
|
15 |
- return NULL;
|
|
16 |
- }
|
|
17 |
-
|
|
18 |
- list = NULL;
|
|
19 |
-
|
|
20 |
- if (g_file_is_native (root)) {
|
|
21 |
- relpath = g_strdup_printf (".Trash/%d", getuid ());
|
|
22 |
- trash = g_file_resolve_relative_path (root, relpath);
|
|
23 |
- g_free (relpath);
|
8514
|
24 |
-
|
11434
|
25 |
- list = g_list_prepend (list, g_file_get_child (trash, "files"));
|
|
26 |
- list = g_list_prepend (list, g_file_get_child (trash, "info"));
|
|
27 |
-
|
|
28 |
- g_object_unref (trash);
|
|
29 |
-
|
|
30 |
- relpath = g_strdup_printf (".Trash-%d", getuid ());
|
|
31 |
- trash = g_file_get_child (root, relpath);
|
|
32 |
- g_free (relpath);
|
|
33 |
-
|
|
34 |
- list = g_list_prepend (list, g_file_get_child (trash, "files"));
|
|
35 |
- list = g_list_prepend (list, g_file_get_child (trash, "info"));
|
|
36 |
-
|
|
37 |
- g_object_unref (trash);
|
|
38 |
- }
|
|
39 |
-
|
|
40 |
- g_object_unref (root);
|
|
41 |
-
|
|
42 |
- return list;
|
|
43 |
+ /* This is called only when unmounting so we can safely return NULL
|
|
44 |
+ * as only $HOME will contain Trash folder.
|
|
45 |
+ */
|
|
46 |
+ return NULL;
|
|
47 |
}
|
8514
|
48 |
|
11434
|
49 |
static gboolean
|
17693
|
50 |
diff -ruN nautilus-2.29.91.orig/configure.in nautilus-2.29.91/configure.in
|
|
51 |
--- nautilus-2.29.91.orig/configure.in 2010-03-12 18:07:38.672521666 +0000
|
|
52 |
+++ nautilus-2.29.91/configure.in 2010-03-12 19:01:39.338873686 +0000
|
|
53 |
@@ -415,8 +415,8 @@
|
|
54 |
CORE_LIBS="`$PKG_CONFIG --libs $CORE_MODULES` $x_libs"
|
|
55 |
AC_SUBST(CORE_LIBS)
|
|
56 |
|
|
57 |
-DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
|
|
58 |
-AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
|
|
59 |
+#DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
|
|
60 |
+#AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
|
|
61 |
|
|
62 |
dnl Multimedia keys
|
|
63 |
AC_CHECK_HEADERS([X11/XF86keysym.h])
|