Package: gtk

Function gtk-text-buffer-modified

Lambda List

gtk-text-buffer-modified (buffer)

Syntax

(gtk-text-buffer-modified buffer) => setting
(setf (gtk-text-buffer-modified buffer) setting)

Arguments

buffer -- a gtk-text-buffer object
setting -- a boolean with the modification flag setting

Details

Returns true if the text buffer has been modified.

The gtk-text-buffer-modified function indicates whether the text buffer has been modified since the last call to the (setf gtk-text-buffer-modified) function.

Used to keep track of whether the text buffer has been modified since the last time it was saved. Whenever the text buffer is saved to disk, call the (setf gtk-text-buffer-modified) function with the false value. When the text buffer is modified, it will automatically toggle on the modified bit again. When the modified bit flips, the text buffer emits a "modified-changed" signal.
 

See also

2021-11-16