diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-06-29 16:26:13 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:37 +0200 |
commit | 918cebfd9b96b22179b4685d94e72b6c97090eb3 (patch) | |
tree | eb9e5b61359da95110cc68626b3504d82b22b079 /daemon/gvfsbackendsftp.c | |
parent | 17a008f395c438c0dad394523cc3d62261ceca4a (diff) | |
download | gvfs-918cebfd9b96b22179b4685d94e72b6c97090eb3.tar.gz |
gdbus: Make copy progress work
...by turning sync copy calls async and running mainloop for progress
interface skeleton be able to process incoming calls.
Also, new class GVfsJobProgress has been introduced mostly for code sharing.
Diffstat (limited to 'daemon/gvfsbackendsftp.c')
-rw-r--r-- | daemon/gvfsbackendsftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c index 08c7c2a5..672f8d49 100644 --- a/daemon/gvfsbackendsftp.c +++ b/daemon/gvfsbackendsftp.c @@ -61,6 +61,7 @@ #include "gvfsjobqueryattributes.h" #include "gvfsjobenumerate.h" #include "gvfsjobmakedirectory.h" +#include "gvfsjobprogress.h" #include "gvfsdaemonprotocol.h" #include "gvfskeyring.h" #include "sftp.h" @@ -4163,7 +4164,7 @@ move_reply (GVfsBackendSftp *backend, /* Succeeded, report file size */ file_size = job->backend_data; if (file_size != NULL) - g_vfs_job_move_progress_callback (*file_size, *file_size, job); + g_vfs_job_progress_callback (*file_size, *file_size, job); g_vfs_job_succeeded (job); } } |