commands_save_document_async


Description:


[ Version ( since = "3.14" ) ]
public async bool commands_save_document_async (Document document, Window window, Cancellable? cancellable)

Asynchronously save the document.

document must belong to window. The source object of the async task is document (which will be the first parameter of the TaskReadyCallback).

When the operation is finished, callback will be called. You can then call commands_save_document_async.end to get the result of the operation.

Parameters:

document

the Document to save.

window

a Window.

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback to call when the operation is finished.

user_data

the data to pass to the callback function.


Namespace: Gedit
Package: gedit