diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-30 18:07:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-30 18:07:48 (GMT) |
commit | 3bb152233051f8f3af7783398536cc987bbcf417 (patch) | |
tree | 13255d2cd63dc0c7da5e6be2d5e7e39a47dd391d /generic/tkUndo.h | |
parent | e0623338b763404cfa939a5be23f880dbb89c75d (diff) | |
parent | e94d8fbd79076b042870c15ffbbb8d2ce446ba07 (diff) | |
download | tk-3bb152233051f8f3af7783398536cc987bbcf417.zip tk-3bb152233051f8f3af7783398536cc987bbcf417.tar.gz tk-3bb152233051f8f3af7783398536cc987bbcf417.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.h | 4 |
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); |