summaryrefslogtreecommitdiffstats
path: root/generic/tkUndo.h
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-30 18:05:24 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-30 18:05:24 (GMT)
commite94d8fbd79076b042870c15ffbbb8d2ce446ba07 (patch)
treeb2940e19ff4f33495bb6c8ac567693f4d11aef8e /generic/tkUndo.h
parent6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae (diff)
parentd1ed9566df0379d64ce1bcbeb9cf4d6ce5054dc1 (diff)
downloadtk-e94d8fbd79076b042870c15ffbbb8d2ce446ba07.zip
tk-e94d8fbd79076b042870c15ffbbb8d2ce446ba07.tar.gz
tk-e94d8fbd79076b042870c15ffbbb8d2ce446ba07.tar.bz2
Merged TIP #446 accepted by TCT vote. This fixes [1273358] - Ask a text widget for the depth of its undo and redo stacks.
Diffstat (limited to 'generic/tkUndo.h')
-rw-r--r--generic/tkUndo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkUndo.h b/generic/tkUndo.h
index e63aac4..490ede9 100644
--- a/generic/tkUndo.h
+++ b/generic/tkUndo.h
@@ -96,9 +96,11 @@ MODULE_SCOPE void TkUndoClearStack(TkUndoAtom **stack);
*/
MODULE_SCOPE TkUndoRedoStack *TkUndoInitStack(Tcl_Interp *interp, int maxdepth);
-MODULE_SCOPE void TkUndoSetDepth(TkUndoRedoStack *stack, int maxdepth);
+MODULE_SCOPE void TkUndoSetMaxDepth(TkUndoRedoStack *stack, int maxdepth);
MODULE_SCOPE void TkUndoClearStacks(TkUndoRedoStack *stack);
MODULE_SCOPE void TkUndoFreeStack(TkUndoRedoStack *stack);
+MODULE_SCOPE int TkUndoCanRedo(TkUndoRedoStack *stack);
+MODULE_SCOPE int TkUndoCanUndo(TkUndoRedoStack *stack);
MODULE_SCOPE void TkUndoInsertUndoSeparator(TkUndoRedoStack *stack);
MODULE_SCOPE TkUndoSubAtom *TkUndoMakeCmdSubAtom(Tcl_Command command,
Tcl_Obj *actionScript, TkUndoSubAtom *subAtomList);