diff options
author | emanuele-f <[email protected]> | 2016-06-11 21:05:20 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-10-17 14:05:35 -0400 |
commit | a7666d0dbe10b0ea5210b8133ead48da0ebc0b0e (patch) | |
tree | d5a93951c01f4f0376f7d524dacd04fe93b5d0ea /libcaja-private/caja-file-operations.c | |
parent | 402392c68e3d55bb0ebb400557796cde563ad452 (diff) | |
download | caja-a7666d0dbe10b0ea5210b8133ead48da0ebc0b0e.tar.bz2 caja-a7666d0dbe10b0ea5210b8133ead48da0ebc0b0e.tar.xz |
extend to all the operations
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r-- | libcaja-private/caja-file-operations.c | 14 |
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, |