summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-trash-directory.c
diff options
context:
space:
mode:
authorMike Engber <engber@src.gnome.org>2001-01-16 01:58:02 +0000
committerMike Engber <engber@src.gnome.org>2001-01-16 01:58:02 +0000
commitbe706e1600005c092bd02e5e6cd78134e4c16228 (patch)
tree55f7de5c666402f859af68acffa4b8cb4ea95ee0 /libnautilus-private/nautilus-trash-directory.c
parentc8006cc70eb4d4b67548e89f8258a171a2f89720 (diff)
downloadnautilus-be706e1600005c092bd02e5e6cd78134e4c16228.tar.gz
reviewed by: John Sullivan
reviewed by: John Sullivan * libnautilus-extensions/nautilus-stock-dialogs.c: (nautilus_timed_wait_start_with_duration), (nautilus_timed_wait_start): * libnautilus-extensions/nautilus-stock-dialogs.h: * libnautilus-extensions/nautilus-trash-directory.c: (find_directory_start): Increase delay before putting up "searching for trash dialog"
Diffstat (limited to 'libnautilus-private/nautilus-trash-directory.c')
-rw-r--r--libnautilus-private/nautilus-trash-directory.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-trash-directory.c b/libnautilus-private/nautilus-trash-directory.c
index cff445713..de7b984d7 100644
--- a/libnautilus-private/nautilus-trash-directory.c
+++ b/libnautilus-private/nautilus-trash-directory.c
@@ -59,17 +59,20 @@ NAUTILUS_DEFINE_CLASS_BOILERPLATE (NautilusTrashDirectory,
nautilus_trash_directory,
NAUTILUS_TYPE_MERGED_DIRECTORY)
+#define TRASH_SEARCH_TIMED_WAIT_DELAY 20000
+
static int pending_find_directory_count = 0;
static void
find_directory_start (void)
{
if (pending_find_directory_count == 0) {
- nautilus_timed_wait_start (NULL,
- add_volume,
- _("Searching Disks"),
- _("Nautilus is searching for trash folders."),
- NULL);
+ nautilus_timed_wait_start_with_duration (TRASH_SEARCH_TIMED_WAIT_DELAY,
+ NULL,
+ add_volume,
+ _("Searching Disks"),
+ _("Nautilus is searching for trash folders."),
+ NULL);
}
++pending_find_directory_count;