[gvfs] gvfs-copy: Show progress for interactive copy



commit d1138fb4fe1ce8c0c13a1a8541682a0d59da50ef
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Thu Apr 17 08:26:46 2014 +0100

    gvfs-copy: Show progress for interactive copy
    
    If requested, show progress for an interactive copy.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=637543

 programs/gvfs-copy.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/programs/gvfs-copy.c b/programs/gvfs-copy.c
index 07d079a..d4f56c8 100644
--- a/programs/gvfs-copy.c
+++ b/programs/gvfs-copy.c
@@ -226,7 +226,8 @@ main (int argc, char *argv[])
                  (line[0] == 'y' || line[0] == 'Y'))
                {
                  flags |= G_FILE_COPY_OVERWRITE;
-                 if (!g_file_copy (source, target, flags, NULL, NULL, NULL, &error))
+                 start_time = g_get_monotonic_time ();
+                 if (!g_file_copy (source, target, flags, NULL, progress?show_progress:NULL, NULL, &error))
                    goto copy_failed;
                }
            }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]