[gvfs] gvfs-move: Show progress for interactive move
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gvfs-move: Show progress for interactive move
- Date: Fri, 18 Apr 2014 19:32:40 +0000 (UTC)
commit d9b8dda613ba847b6696f58d5dccfff5bf5e0ad0
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Thu Apr 17 08:44:12 2014 +0100
gvfs-move: Show progress for interactive move
If requested, show progress for an interactive move.
https://bugzilla.gnome.org/show_bug.cgi?id=637543
programs/gvfs-move.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/programs/gvfs-move.c b/programs/gvfs-move.c
index 057f982..4d02612 100644
--- a/programs/gvfs-move.c
+++ b/programs/gvfs-move.c
@@ -217,7 +217,8 @@ main (int argc, char *argv[])
(line[0] == 'y' || line[0] == 'Y'))
{
flags |= G_FILE_COPY_OVERWRITE;
- if (!g_file_move (source, target, flags, NULL, NULL, NULL, &error))
+ start_time = g_get_monotonic_time ();
+ if (!g_file_move (source, target, flags, NULL, progress?show_progress:NULL, NULL, &error))
goto move_failed;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]