FileSaver

constructor(buffer: Buffer, file: File)

Creates a new #GtkSourceFileSaver object. The @buffer will be saved to the class@File's location.

This constructor is suitable for a simple "save" operation, when the @file already contains a non-null property@File:location.

Return

a new #GtkSourceFileSaver object.

Parameters

buffer

the #GtkSourceBuffer to save.

file

the #GtkSourceFile.


constructor(buffer: Buffer, file: File, targetLocation: <Error class: unknown class>)

Creates a new #GtkSourceFileSaver object with a target location.

When the file saving is finished successfully, @target_location is set to the @file's property@File:location property. If an error occurs, the previous valid location is still available in class@File.

This constructor is suitable for a "save as" operation, or for saving a new buffer for the first time.

Return

a new #GtkSourceFileSaver object.

Parameters

buffer

the #GtkSourceBuffer to save.

file

the #GtkSourceFile.

targetLocation

the #GFile where to save the buffer to.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)