set_enable_undo


Description:

public void set_enable_undo (bool enable_undo)

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

Undoable actions in this context are changes to the text content of the buffer. Changes to tags and marks are not tracked.

If enabled, the user will be able to undo the last number of actions up to [[email protected]_max_undo_levels].

See [[email protected]_irreversible_action] and [[email protected]_irreversible_action] to create changes to the buffer that cannot be undone.

Parameters:

this

a `GtkTextBuffer`

enable_undo

true to enable undo




2022 vala-language.org