diff options
author | hobbs <hobbs> | 2000-11-03 19:38:25 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-11-03 19:38:25 (GMT) |
commit | 499194826b8ddab8b155babfc02dc9c21df4ccd8 (patch) | |
tree | 8be55013574bc56f15a91f785527b6f47e352f65 /generic/tkWindow.c | |
parent | 9bb436ed9f46ab2cc7975221e98d01398ceeba23 (diff) | |
download | tk-499194826b8ddab8b155babfc02dc9c21df4ccd8.zip tk-499194826b8ddab8b155babfc02dc9c21df4ccd8.tar.gz tk-499194826b8ddab8b155babfc02dc9c21df4ccd8.tar.bz2 |
added comments about Tcl_SetMainLoop call effects
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r-- | generic/tkWindow.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index ce5120a..d20ffc8 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -12,7 +12,7 @@ * 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.27 2000/11/03 18:46:58 hobbs Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.28 2000/11/03 19:38:25 hobbs Exp $ */ #include "tkPort.h" @@ -3058,6 +3058,14 @@ Initialize(interp) if (code != TCL_OK) { goto done; } else { + /* + * If we were able to provide ourselves as a package, then set + * the main loop procedure in Tcl to our main loop proc. This + * will cause tclsh to be event-aware when Tk is dynamically + * loaded. This will have no effect in wish, which already is + * prepared to run the event loop. + */ + Tcl_SetMainLoop(Tk_MainLoop); } |