diff options
author | stanton <stanton> | 1999-03-10 07:04:38 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-03-10 07:04:38 (GMT) |
commit | 50950accea8a4e877651105374865cb6f3f48d6e (patch) | |
tree | b83515b886272ee3c61631f31cfe3fad937dc0a7 /generic/tkWindow.c | |
parent | d6904011d50a34d15964b94db8d5e7010e081ffd (diff) | |
download | tk-50950accea8a4e877651105374865cb6f3f48d6e.zip tk-50950accea8a4e877651105374865cb6f3f48d6e.tar.gz tk-50950accea8a4e877651105374865cb6f3f48d6e.tar.bz2 |
integrated stubs into 8.0 main branch
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r-- | generic/tkWindow.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 64b06a8..d904658 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -12,12 +12,16 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWindow.c,v 1.4 1998/09/30 19:01:20 rjohnson Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.5 1999/03/10 07:04:44 stanton Exp $ */ #include "tkPort.h" #include "tkInt.h" +#if !defined(__WIN32__) && !defined(MAC_TCL) +#include "tkUnixInt.h" +#endif + /* * Count of number of main windows currently open in this process. */ @@ -2609,6 +2613,15 @@ Initialize(interp) char buffer[30]; /* + * Ensure that we are getting the matching version of Tcl. This is + * really only an issue when Tk is loaded dynamically. + */ + + if (Tcl_InitStubs(interp, TCL_VERSION, 1) == NULL) { + return TCL_ERROR; + } + + /* * Start by initializing all the static variables to default acceptable * values so that no information is leaked from a previous run of this * code. @@ -2817,7 +2830,12 @@ Initialize(interp) code = TCL_ERROR; goto done; } - code = Tcl_PkgProvide(interp, "Tk", TK_VERSION); + + /* + * Provide Tk and its stub table. + */ + + code = Tcl_PkgProvideEx(interp, "Tk", TK_VERSION, (ClientData) tkStubsPtr); if (code != TCL_OK) { goto done; } |