summaryrefslogtreecommitdiffstats
path: root/generic/tkTest.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2008-10-05 18:22:21 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2008-10-05 18:22:21 (GMT)
commit3a010da1bb29b97436f6057b1a4d644d8d9dc3f7 (patch)
tree57b5f8cd5ff8ef866da62495bc435946f4655c50 /generic/tkTest.c
parent1f14c35a9cfdd960b4455d84d2d46d7ecad5e44f (diff)
downloadtk-3a010da1bb29b97436f6057b1a4d644d8d9dc3f7.zip
tk-3a010da1bb29b97436f6057b1a4d644d8d9dc3f7.tar.gz
tk-3a010da1bb29b97436f6057b1a4d644d8d9dc3f7.tar.bz2
Greatly clean up Tk's handling of the writability of the Tcl result object.
Diffstat (limited to 'generic/tkTest.c')
-rw-r--r--generic/tkTest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTest.c b/generic/tkTest.c
index f4945eb..515e27e 100644
--- a/generic/tkTest.c
+++ b/generic/tkTest.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTest.c,v 1.37 2008/07/23 23:24:23 nijtmans Exp $
+ * RCS: @(#) $Id: tkTest.c,v 1.38 2008/10/05 18:22:21 dkf Exp $
*/
#include "tkInt.h"
@@ -1314,7 +1314,7 @@ TrivialConfigObjCmd(
headerPtr->optionTable, objc - 2, objv + 2,
tkwin, NULL, &mask);
if (result == TCL_OK) {
- Tcl_SetIntObj(Tcl_GetObjResult(interp), mask);
+ Tcl_SetObjResult(interp, Tcl_NewIntObj(mask));
}
}
break;
@@ -1324,7 +1324,7 @@ TrivialConfigObjCmd(
tkwin, &saved, &mask);
Tk_FreeSavedOptions(&saved);
if (result == TCL_OK) {
- Tcl_SetIntObj(Tcl_GetObjResult(interp), mask);
+ Tcl_SetObjResult(interp, Tcl_NewIntObj(mask));
}
break;
}