TextBuffer.getModified

bool getModified()

Indicates whether the buffer has been modified since the last call to [gtk.text_buffer.TextBuffer.setModified] set the modification flag to false.

Used for example to enable a “save” function in a text editor.

Returns

true if the buffer has been modified