summaryrefslogtreecommitdiffstats
path: root/generic/tkCmds.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-21 21:19:02 (GMT)
committerhobbs <hobbs>2001-09-21 21:19:02 (GMT)
commitc15e4544e15f656682ebe0fe43619fdeb2e00a1f (patch)
tree1686ef49473c533f38a745ab133fe62396dff979 /generic/tkCmds.c
parente5568a988e863496a20b1dbfb19c9ed04450e90a (diff)
downloadtk-c15e4544e15f656682ebe0fe43619fdeb2e00a1f.zip
tk-c15e4544e15f656682ebe0fe43619fdeb2e00a1f.tar.gz
tk-c15e4544e15f656682ebe0fe43619fdeb2e00a1f.tar.bz2
correct Window id's to be of type Window
Diffstat (limited to 'generic/tkCmds.c')
-rw-r--r--generic/tkCmds.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkCmds.c b/generic/tkCmds.c
index 6be5557..2149d58 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.19 2000/10/05 18:31:25 ericm Exp $
+ * RCS: @(#) $Id: tkCmds.c,v 1.20 2001/09/21 21:19:02 hobbs Exp $
*/
#include "tkPort.h"
@@ -1391,7 +1391,7 @@ Tk_WinfoObjCmd(clientData, interp, objc, objv)
return result;
}
case WIN_PATHNAME: {
- int id;
+ Window id;
skip = TkGetDisplayOf(interp, objc - 2, objv + 2, &tkwin);
if (skip < 0) {
@@ -1405,8 +1405,7 @@ Tk_WinfoObjCmd(clientData, interp, objc, objv)
if (TkpScanWindowId(interp, string, &id) != TCL_OK) {
return TCL_ERROR;
}
- winPtr = (TkWindow *)
- Tk_IdToWindow(Tk_Display(tkwin), (Window) id);
+ winPtr = (TkWindow *)Tk_IdToWindow(Tk_Display(tkwin), id);
if ((winPtr == NULL) ||
(winPtr->mainPtr != ((TkWindow *) tkwin)->mainPtr)) {
Tcl_AppendStringsToObj(resultPtr, "window id \"", string,