File
On-disk representation of a class@Buffer.
A GtkSourceFile
object is the on-disk representation of a class@Buffer. With a GtkSourceFile
, you can create and configure a class@FileLoader and class@FileSaver which take by default the values of the GtkSourceFile
properties (except for the file loader which auto-detect some properties). On a successful load or save operation, the GtkSourceFile
properties are updated. If an operation fails, the GtkSourceFile
properties have still the previous valid values.
Skipped during bindings generation
method
location
: Property TypeInfo of getter and setter do not matchmethod
read-only
: Property has no getter nor setter
Constructors
Properties
Functions
Checks synchronously the file on disk, to know whether the file is externally modified, or has been deleted, and whether the file is read-only.
The encoding is initially null. After a successful file loading or saving operation, the encoding is non-null.
Returns whether the file is externally modified. If the property@File:location is null, returns false.
Returns whether the file is read-only. If the property@File:location is null, returns false.
Sets the location.