FileSaver.newWithTarget
gtksource.file_saver.FileSaver newWithTarget(gtksource.buffer.Buffer buffer, gtksource.file.File file, gio.file.File targetLocation)Creates a new #GtkSourceFileSaver object with a target location. When the file saving is finished successfully, target_location is set to the file's #GtkSourceFile:location property. If an error occurs, the previous valid location is still available in #GtkSourceFile.
This constructor is suitable for a "save as" operation, or for saving a new buffer for the first time.
Parameters
buffer | the #GtkSourceBuffer to save. |
file | the #GtkSourceFile. |
targetLocation | the #GFile where to save the buffer to. |
Returns
a new #GtkSourceFileSaver object.