diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-11-09 15:43:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-11-09 15:43:08 (GMT) |
commit | 012e0eb64e8ed4ffacb5a92a8946201ce45e5ac1 (patch) | |
tree | e09d0af58bc14bc5977fbf9290cb6a563e4cac1e /unix/tkUnixEmbed.c | |
parent | 261bb53daab15af92df93e17164554e89cb92139 (diff) | |
download | tk-012e0eb64e8ed4ffacb5a92a8946201ce45e5ac1.zip tk-012e0eb64e8ed4ffacb5a92a8946201ce45e5ac1.tar.gz tk-012e0eb64e8ed4ffacb5a92a8946201ce45e5ac1.tar.bz2 |
Fix [5ee8af61e5ef8e233158a43459624f4ecf58a6fe|5ee8af61e5] on Unix: Window embedding can not work on 64-bit Unix and Windows
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 5b5f486..119bc67 100644 --- a/unix/tkUnixEmbed.c +++ b/unix/tkUnixEmbed.c @@ -100,7 +100,7 @@ TkpUseWindow( { TkWindow *winPtr = (TkWindow *) tkwin; TkWindow *usePtr; - int id, anyError; + int anyError; Window parent; Tk_ErrorHandler handler; Container *containerPtr; @@ -113,10 +113,9 @@ TkpUseWindow( "can't modify container after widget is created", 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) { |