summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r--libcaja-private/caja-file-operations.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index 821c0ce8..d01233e8 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -1779,6 +1779,8 @@ trash_files (CommonJob *job, GList *files, int *files_skipped)
for (l = files;
l != NULL && !job_aborted (job);
l = l->next) {
+ caja_progress_info_wait_unpaused(job->progress);
+
file = l->data;
error = NULL;
@@ -4708,6 +4710,7 @@ move_file_prepare (CopyMoveJob *move_job,
}
retry:
+ caja_progress_info_wait_unpaused(job->progress);
flags = G_FILE_COPY_NOFOLLOW_SYMLINKS | G_FILE_COPY_NO_FALLBACK_FOR_MOVE;
if (overwrite) {
@@ -4941,6 +4944,8 @@ common = &job->common;
for (l = fallbacks;
l != NULL && !job_aborted (common);
l = l->next) {
+ caja_progress_info_wait_unpaused(common->progress);
+
fallback = l->data;
src = fallback->file;
@@ -5361,6 +5366,8 @@ link_job (GIOSchedulerJob *io_job,
for (l = job->files;
l != NULL && !job_aborted (common);
l = l->next) {
+ caja_progress_info_wait_unpaused(common->progress);
+
src = l->data;
if (i < job->n_icon_positions) {
@@ -5505,6 +5512,8 @@ set_permissions_file (SetPermissionsJob *job,
common = (CommonJob *)job;
caja_progress_info_pulse_progress (common->progress);
+
+ caja_progress_info_wait_unpaused(common->progress);
free_info = FALSE;
if (info == NULL) {
@@ -5866,6 +5875,7 @@ create_job (GIOSchedulerJob *io_job,
count = 1;
retry:
+ caja_progress_info_wait_unpaused(common->progress);
error = NULL;
if (job->make_dir) {
@@ -6198,6 +6208,8 @@ delete_trash_file (CommonJob *job,
GFileInfo *info;
GFile *child;
GFileEnumerator *enumerator;
+
+ caja_progress_info_wait_unpaused (job->progress);
if (job_aborted (job)) {
return;
@@ -6341,6 +6353,8 @@ mark_desktop_file_trusted (CommonJob *common,
GFileInfo *info;
retry:
+ caja_progress_info_wait_unpaused (common->progress);
+
error = NULL;
if (!g_file_load_contents (file,
cancellable,