summaryrefslogtreecommitdiff
path: root/thunar/thunar-io-scan-directory.h
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2011-01-24 19:52:39 +0100
committerJannis Pohlmann <jannis@xfce.org>2011-01-24 19:52:39 +0100
commitbcdceffe0a292aa6ef24f149b746c9d5f15977be (patch)
tree1d77adf753ab1b83dd3f582b72d522cc347597ef /thunar/thunar-io-scan-directory.h
parentc231b0f266ca52be057cac23dfef12d1c2995895 (diff)
downloadthunar-bcdceffe0a292aa6ef24f149b746c9d5f15977be.tar.gz
Only erase top-level items from trash (bug #7147).
Apparently, the GVfs trash backend only allows top-level directories in the trash to be modified. Children can be deleted implicitely but e.g. when emptying the trash, only the top-level items may be deleted. To give an example: g_file_delete() fails for "trash:///test/foo.txt" but succeeds for "trash:///test". This problem is covered in the trash specification under "Implementation notes".
Diffstat (limited to 'thunar/thunar-io-scan-directory.h')
-rw-r--r--thunar/thunar-io-scan-directory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/thunar/thunar-io-scan-directory.h b/thunar/thunar-io-scan-directory.h
index f654e682..1ace9750 100644
--- a/thunar/thunar-io-scan-directory.h
+++ b/thunar/thunar-io-scan-directory.h
@@ -1,6 +1,6 @@
/* vi:set et ai sw=2 sts=2 ts=2: */
/*-
- * Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
+ * Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@ GList *thunar_io_scan_directory (ThunarJob *job,
GFile *file,
GFileQueryInfoFlags flags,
gboolean recursively,
+ gboolean unlinking,
GError **error);
G_END_DECLS