From dbd3ec671dec8ea39032d3b0b56387df40c66c28 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 31 Mar 2004 10:24:20 +0000 Subject: toxy alpha11 svn path=/trunk/externals/miXed/; revision=1526 --- shared/hammer/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/hammer/gui.c') diff --git a/shared/hammer/gui.c b/shared/hammer/gui.c index 131ddfe..ec6add7 100644 --- a/shared/hammer/gui.c +++ b/shared/hammer/gui.c @@ -199,7 +199,8 @@ static void hammergui_setup(void) /* Protect against pdCmd being called (via "Canvas " binding) during Tcl_Finalize(). FIXME this should be a standard exit handler. */ sys_gui("proc hammergui_exithook {cmd op} {proc pd {} {}}\n"); - sys_gui("trace add execution exit enter hammergui_exithook\n"); + sys_gui("if {[info tclversion] >= 8.4} {\n\ + trace add execution exit enter hammergui_exithook}\n"); sys_gui("proc hammergui_ispatcher {cv} {\n"); sys_gui(" if {[string range $cv 0 1] == \".x\""); -- cgit v1.2.1