summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-11-28 19:45:01 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-11-28 19:45:01 (GMT)
commit14e20d7a1a609c613be7d73cf84abe1011876b17 (patch)
tree25422f71bf65b1db89584a001d6a949ee031bd41 /generic/tkText.c
parentb869b3c26e93113c398a7f7794aaeea9182fbd32 (diff)
downloadtk-14e20d7a1a609c613be7d73cf84abe1011876b17.zip
tk-14e20d7a1a609c613be7d73cf84abe1011876b17.tar.gz
tk-14e20d7a1a609c613be7d73cf84abe1011876b17.tar.bz2
[.text pendingsync] returns a boolean
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c6
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: {