TextBuffer.setEnableUndo

Sets whether or not to enable undoable actions in the text buffer.

If enabled, the user will be able to undo the last number of actions up to [method@Gtk.TextBuffer.get_max_undo_levels].

See [method@Gtk.TextBuffer.begin_irreversible_action] and [method@Gtk.TextBuffer.end_irreversible_action] to create changes to the buffer that cannot be undone.

class TextBuffer
void
setEnableUndo
()

Parameters

enableUndo bool

%TRUE to enable undo

Meta