summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-03 19:38:25 (GMT)
committerhobbs <hobbs>2000-11-03 19:38:25 (GMT)
commit5fa08c5a6d05a38fcbe849379e552e7aa30845b9 (patch)
tree8be55013574bc56f15a91f785527b6f47e352f65
parent6a454a43e5c5776ca4f3f419a3d2574090b0a0c2 (diff)
downloadtk-5fa08c5a6d05a38fcbe849379e552e7aa30845b9.zip
tk-5fa08c5a6d05a38fcbe849379e552e7aa30845b9.tar.gz
tk-5fa08c5a6d05a38fcbe849379e552e7aa30845b9.tar.bz2
added comments about Tcl_SetMainLoop call effects
-rw-r--r--generic/tkWindow.c10
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);
}