diff options
author | hypnotoad <yoda@etoyoc.com> | 2016-10-02 12:07:40 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2016-10-02 12:07:40 (GMT) |
commit | 0c444bd87e7dc74b25427a5fccf08ddd8d565cd6 (patch) | |
tree | 3afc6c9d5e73e2e86de808ce98ce275312d3dc7e /unix/tkUnixEmbed.c | |
parent | 20c81b194394bb6ea16d1831f6f895b63477819c (diff) | |
parent | 6c0dafab46875ddb6dd0a91f5e056a8d87722ca6 (diff) | |
download | tk-core_zip_vfs.zip tk-core_zip_vfs.tar.gz tk-core_zip_vfs.tar.bz2 |
Pulling changes from trunkcore_zip_vfs
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)) { |