summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-03 18:46:58 (GMT)
committerhobbs <hobbs>2000-11-03 18:46:58 (GMT)
commit9bb436ed9f46ab2cc7975221e98d01398ceeba23 (patch)
treeaaf0d87529cc96915e75af1625be9429595dc067 /generic
parent55dfcb2faacc061def254da9427d86d026d59a50 (diff)
downloadtk-9bb436ed9f46ab2cc7975221e98d01398ceeba23.zip
tk-9bb436ed9f46ab2cc7975221e98d01398ceeba23.tar.gz
tk-9bb436ed9f46ab2cc7975221e98d01398ceeba23.tar.bz2
* generic/tkWindow.c (Initialize): added call to Tcl_SetMainLoop.
This only has effect when tclsh is run (not wish), and then Tk is loaded in interactively.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkWindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 9ec1d12..ce5120a 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.26 2000/10/05 18:31:26 ericm Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.27 2000/11/03 18:46:58 hobbs Exp $
*/
#include "tkPort.h"
@@ -3057,6 +3057,8 @@ Initialize(interp)
code = Tcl_PkgProvideEx(interp, "Tk", TK_VERSION, (ClientData) &tkStubs);
if (code != TCL_OK) {
goto done;
+ } else {
+ Tcl_SetMainLoop(Tk_MainLoop);
}
#ifdef Tk_InitStubs