FileLoader


Object Hierarchy:

GtkSource.FileLoader GtkSource.FileLoader GtkSource.FileLoader GLib.Object GLib.Object GLib.Object->GtkSource.FileLoader

Description:

[ CCode ( type_id = "gtk_source_file_loader_get_type ()" ) ]
public class FileLoader : Object

Load a file into a GtkSourceBuffer.

A `GtkSourceFileLoader` object permits to load the contents of a [[email protected]] or a [[email protected]] into a [class@Buffer].

A file loader should be used only for one load operation, including errors handling. If an error occurs, you can reconfigure the loader and relaunch the operation with [[email protected]_async].

Running a `GtkSourceFileLoader` is an undoable action for the [class@Buffer].

After a file loading, the buffer is reset to the contents provided by the [[email protected]] or [[email protected]], so the buffer is set as “unmodified”, that is, [[email protected]_modified] is called with false. If the contents isn't saved somewhere (for example if you load from stdin), then you should probably call [[email protected]_modified] with true after calling [[email protected]_finish].


Namespace: GtkSource
Package: gtksourceview-5

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org