diff options
author | fvogel <fvogelnew1@free.fr> | 2015-11-28 19:45:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-11-28 19:45:01 (GMT) |
commit | 492a37c09443c512e4054acff1bd206ae5d4d501 (patch) | |
tree | 25422f71bf65b1db89584a001d6a949ee031bd41 /generic/tkText.c | |
parent | 95fd1a86a7bef3b6e0458a8a15041cdff62aa571 (diff) | |
download | tk-492a37c09443c512e4054acff1bd206ae5d4d501.zip tk-492a37c09443c512e4054acff1bd206ae5d4d501.tar.gz tk-492a37c09443c512e4054acff1bd206ae5d4d501.tar.bz2 |
[.text pendingsync] returns a boolean
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 62de1af..09e656f 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -1374,15 +1374,13 @@ TextWidgetObjCmd( result = TextPeerCmd(textPtr, interp, objc, objv); break; case TEXT_PENDINGSYNC: { - int number; - if (objc != 2) { Tcl_WrongNumArgs(interp, 2, objv, NULL); result = TCL_ERROR; goto done; } - number = TkTextPendingsync(textPtr); - Tcl_SetObjResult(interp, Tcl_NewIntObj(number)); + Tcl_SetObjResult(interp, + Tcl_NewBooleanObj(TkTextPendingsync(textPtr))); break; } case TEXT_REPLACE: { |