gtksource.undo_manager_mixin
Module for [UndoManager] interface mixin
Templates 2
Begin a not undoable action on the buffer. All changes between this call and the call to [gtksource.undo_manager.UndoManager.endNotUndoableAction] cannot be undone. This function should be re-entrant.
Get whether there are redo operations available.
Returns
Emits the #GtkSourceUndoManager::can-redo-changed signal.
Get whether there are undo operations available.
Returns
Emits the #GtkSourceUndoManager::can-undo-changed signal.
Ends a not undoable action on the buffer.
Perform a single redo. Calling this function when there are no redo operations available is an error. Use [gtksource.undo_manager.UndoManager.canRedo] to find out if there are redo operations available.
Perform a single undo. Calling this function when there are no undo operations available is an error. Use [gtksource.undo_manager.UndoManager.canUndo] to find out if there are undo operations available.
Connect to CanRedoChanged signal.
Emitted when the ability to redo has changed.
Parameters
callback | signal callback delegate or function to connect void callback(gtksource.undo_manager.UndoManager undoManager) undoManager the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Connect to CanUndoChanged signal.
Emitted when the ability to undo has changed.
Parameters
callback | signal callback delegate or function to connect void callback(gtksource.undo_manager.UndoManager undoManager) undoManager the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |