GNOME Bugzilla – Bug 511580
Last modified: 2008-01-24 14:22:28 UTC
There should be an async version of g_file_copy in gio.
Created attachment 103553 [details] [review]
Patch that adds g_file_copy_async
shouldn't you add g_file_copy_finish to the symbols file as well?
Created attachment 103576 [details] [review]
Add also finish method to symbols file
Yes Wouter, thank you!
There are two issues with this patch:
1) There is no way to override the behaviour in the backend.
g_file_copy_async() should call a virtual method with a default implementation
2) The progress callbacks should be called on the main thread, not in the I/O thread.
I fixed these issues and commited to svn. Can you please test the commited code (I assume you have some use for this call).
Yes, I used this simple program (http://people.freedesktop.org/~carlosgc/gfilecopy.c) and it works.