I'm confused about some of the GIO async functions. In my case, I want to use gio.File.replace_contents_async(). But what's the signature of the callback it takes? I would assume that the callback receives the original File object, but looking at the docs for gio.AsyncResult, it might also need to take other arguments:
"This callback will be triggered when the operation has completed, and will be passed a GAsyncResult instance filled with the details of the operation's success or failure, the object the asynchronous function was started for and any error codes returned." This sentence is a bit grammatically imprecise :P I'm not sure whether the "object the asynchronous function was started for" is part of (a) what is passed to the callback, or (b) the contents of the GAsyncResult. In either case, how do I use it? Presumably the return value from replace_contents_finish() is the same as from replace_contents() (an etag). But do I need to pass the GAsyncResult to replace_contents_finish(), so that it's populated with any error codes? Or are the error codes passed into the callback? Any clarifying comments welcome :) — Jason _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
