summaryrefslogtreecommitdiffstats
path: root/generic/tkCmds.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-05 21:23:25 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-05 21:23:25 (GMT)
commite8d773fd302e54d41d6c6e3a15f0b3d0255ba95b (patch)
tree5eff71a24b339032fbd6e5e2ceb4a84ae3b22f83 /generic/tkCmds.c
parent501d0b1523e4a2b370c58cd262bbed99725a5ab1 (diff)
downloadtk-e8d773fd302e54d41d6c6e3a15f0b3d0255ba95b.zip
tk-e8d773fd302e54d41d6c6e3a15f0b3d0255ba95b.tar.gz
tk-e8d773fd302e54d41d6c6e3a15f0b3d0255ba95b.tar.bz2
minor corrections
Diffstat (limited to 'generic/tkCmds.c')
-rw-r--r--generic/tkCmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCmds.c b/generic/tkCmds.c
index cc36d5c..d3dc9a4 100644
--- a/generic/tkCmds.c
+++ b/generic/tkCmds.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCmds.c,v 1.43 2008/10/05 18:22:21 dkf Exp $
+ * RCS: @(#) $Id: tkCmds.c,v 1.44 2008/10/05 21:25:07 dkf Exp $
*/
#include "tkInt.h"
@@ -1362,7 +1362,7 @@ Tk_WinfoObjCmd(
xyObj[0] = Tcl_NewIntObj(x);
xyObj[1] = Tcl_NewIntObj(y);
- Tcl_SetObjResult(interp, Tcl_NewListObj(xyObj, 2));
+ Tcl_SetObjResult(interp, Tcl_NewListObj(2, xyObj));
} else if (useX) {
Tcl_SetObjResult(interp, Tcl_NewIntObj(x));
} else {
@@ -1695,7 +1695,7 @@ Tk_WinfoObjCmd(
visInfoPtr = XGetVisualInfo(Tk_Display(tkwin), VisualScreenMask,
&template, &count);
if (visInfoPtr == NULL) {
- Tcl_SetObjResult(interp, "can't find any visuals for screen",
+ Tcl_SetResult(interp, "can't find any visuals for screen",
TCL_STATIC);
return TCL_ERROR;
}