GtkSource.UndoManager

g GObject.GInterface GObject.GInterface GtkSource.UndoManager GtkSource.UndoManager GObject.GInterface->GtkSource.UndoManager

Implementations:
 None

Properties

None

Signals

Name Short Description
can-redo-changed Emitted when the ability to redo has changed.
can-undo-changed Emitted when the ability to undo has changed.

Fields

None

Class Details

class GtkSource.UndoManager
Bases:GObject.GInterface
Structure:GtkSource.UndoManagerIface
begin_not_undoable_action()

Begin a not undoable action on the buffer. All changes between this call and the call to GtkSource.UndoManager.end_not_undoable_action() cannot be undone. This function should be re-entrant.

New in version 2.10.

can_redo()
Returns:True if there are redo operations available, False otherwise
Return type:bool

Get whether there are redo operations available.

New in version 2.10.

can_redo_changed()

Emits the GtkSource.UndoManager ::can-redo-changed signal.

New in version 2.10.

can_undo()
Returns:True if there are undo operations available, False otherwise
Return type:bool

Get whether there are undo operations available.

New in version 2.10.

can_undo_changed()

Emits the GtkSource.UndoManager ::can-undo-changed signal.

New in version 2.10.

end_not_undoable_action()

Ends a not undoable action on the buffer.

New in version 2.10.

redo()

Perform a single redo. Calling this function when there are no redo operations available is an error. Use GtkSource.UndoManager.can_redo() to find out if there are redo operations available.

New in version 2.10.

undo()

Perform a single undo. Calling this function when there are no undo operations available is an error. Use GtkSource.UndoManager.can_undo() to find out if there are undo operations available.

New in version 2.10.

do_begin_not_undoable_action() virtual

Begin a not undoable action on the buffer. All changes between this call and the call to GtkSource.UndoManager.end_not_undoable_action() cannot be undone. This function should be re-entrant.

New in version 2.10.

do_can_redo() virtual
Returns:True if there are redo operations available, False otherwise
Return type:bool

Get whether there are redo operations available.

New in version 2.10.

do_can_redo_changed() virtual

Emits the GtkSource.UndoManager ::can-redo-changed signal.

New in version 2.10.

do_can_undo() virtual
Returns:True if there are undo operations available, False otherwise
Return type:bool

Get whether there are undo operations available.

New in version 2.10.

do_can_undo_changed() virtual

Emits the GtkSource.UndoManager ::can-undo-changed signal.

New in version 2.10.

do_end_not_undoable_action() virtual

Ends a not undoable action on the buffer.

New in version 2.10.

do_redo() virtual

Perform a single redo. Calling this function when there are no redo operations available is an error. Use GtkSource.UndoManager.can_redo() to find out if there are redo operations available.

New in version 2.10.

do_undo() virtual

Perform a single undo. Calling this function when there are no undo operations available is an error. Use GtkSource.UndoManager.can_undo() to find out if there are undo operations available.

New in version 2.10.

Signal Details

GtkSource.UndoManager.signals.can_redo_changed(undo_manager)
Signal Name:can-redo-changed
Flags:RUN_LAST, ACTION
Parameters:undo_manager (GtkSource.UndoManager) – The object which received the signal

Emitted when the ability to redo has changed.

New in version 2.10.

GtkSource.UndoManager.signals.can_undo_changed(undo_manager)
Signal Name:can-undo-changed
Flags:RUN_LAST, ACTION
Parameters:undo_manager (GtkSource.UndoManager) – The object which received the signal

Emitted when the ability to undo has changed.

New in version 2.10.