FileLoader

constructor(buffer: Buffer, file: File)

Creates a new GtkSourceFileLoader object. The contents is read from the class@File's location.

If not already done, call method@File.set_location before calling this constructor. The previous location is anyway not needed, because as soon as the file loading begins, the @buffer is emptied.

Return

a new #GtkSourceFileLoader object.

Parameters

buffer

the #GtkSourceBuffer to load the contents into.

file

the #GtkSourceFile.


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

Creates a new #GtkSourceFileLoader object. The contents is read from @stream.

Return

a new #GtkSourceFileLoader object.

Parameters

buffer

the #GtkSourceBuffer to load the contents into.

file

the #GtkSourceFile.

stream

the #GInputStream to load, e.g. stdin.


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