Infinity.Buffer

g GObject.GInterface GObject.GInterface Infinity.Buffer Infinity.Buffer GObject.GInterface->Infinity.Buffer

Implementations:

Infinity.ChatBuffer

Methods

get_modified ()

set_modified (modified)

Virtual Methods

do_get_modified ()

do_set_modified (modified)

Properties

Name

Type

Flags

Short Description

modified

bool

r/w

Whether the buffer was modified since it has been saved

Signals

None

Fields

None

Class Details

class Infinity.Buffer
Bases:

GObject.GInterface

Structure:

Infinity.BufferInterface

Infinity.Buffer is an opaque data type. You should only access it via the public API functions.

get_modified()
Returns:

Whether the buffer has been modified.

Return type:

bool

Indicates whether the buffer has been modified since the last call to Infinity.Buffer.set_modified() set the modification flag to False.

set_modified(modified)
Parameters:

modified (bool) – Whether the buffer is considered modified or not.

Sets the modification flag of self to modified. You should normally set the flag to False every time the document is saved onto disk. The buffer itself will set it to True when it has been changed.

To get notified when the modification flag changes, connect to GObject.Object ::notify for the Infinity.Buffer :modified property.

do_get_modified() virtual
Returns:

Whether the buffer has been modified.

Return type:

bool

Indicates whether the buffer has been modified since the last call to Infinity.Buffer.set_modified() set the modification flag to False.

do_set_modified(modified) virtual
Parameters:

modified (bool) – Whether the buffer is considered modified or not.

Sets the modification flag of buffer to modified. You should normally set the flag to False every time the document is saved onto disk. The buffer itself will set it to True when it has been changed.

To get notified when the modification flag changes, connect to GObject.Object ::notify for the Infinity.Buffer :modified property.

Property Details

Infinity.Buffer.props.modified
Name:

modified

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the buffer was modified since it has been saved