summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-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);
}