From 9bb436ed9f46ab2cc7975221e98d01398ceeba23 Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 3 Nov 2000 18:46:58 +0000 Subject: * 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. --- ChangeLog | 6 ++++++ generic/tkWindow.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2383841..182b260 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-11-03 Jeff Hobbs + + * 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. + 2000-11-02 Jeff Hobbs * win/tkWinButton.c: 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 -- cgit v0.12