diff options
author | dgp <dgp@users.sourceforge.net> | 2016-04-19 17:29:39 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-04-19 17:29:39 (GMT) |
commit | 460dcd4bf3f9fadbd240dfcf2831278cb264e3bf (patch) | |
tree | b00f7f86b33280c023fbe908510435241ef9f314 /unix/tkUnixEmbed.c | |
parent | 7e7435a12f36a5146680ece7bff1f4f48f407944 (diff) | |
parent | bcb71c3efaadfc55dcd742522aaf331a40b9a7ec (diff) | |
download | tk-little.zip tk-little.tar.gz tk-little.tar.bz2 |
Merge 8.6.5 release.little
Diffstat (limited to 'unix/tkUnixEmbed.c')
-rw-r--r-- | unix/tkUnixEmbed.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tkUnixEmbed.c b/unix/tkUnixEmbed.c index 7f3f94b..b170ad0 100644 --- a/unix/tkUnixEmbed.c +++ b/unix/tkUnixEmbed.c @@ -101,7 +101,7 @@ TkpUseWindow( { TkWindow *winPtr = (TkWindow *) tkwin; TkWindow *usePtr; - int id, anyError; + int anyError; Window parent; Tk_ErrorHandler handler; Container *containerPtr; @@ -115,10 +115,9 @@ TkpUseWindow( Tcl_SetErrorCode(interp, "TK", "EMBED", "POST_CREATE", NULL); return TCL_ERROR; } - if (Tcl_GetInt(interp, string, &id) != TCL_OK) { + if (TkpScanWindowId(interp, string, &parent) != TCL_OK) { return TCL_ERROR; } - parent = (Window) id; usePtr = (TkWindow *) Tk_IdToWindow(winPtr->display, parent); if (usePtr != NULL && !(usePtr->flags & TK_CONTAINER)) { |