From cd56bcc2c36de8045f5cca34180cd072505ab2f7 Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 30 Mar 2001 07:04:35 +0000 Subject: * library/tk.tcl: put a catch around adding to the <> virtual event as it doesn't seem to work on all HP systems. [Bug #411669] --- library/tk.tcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/tk.tcl b/library/tk.tcl index 1428a9d..b49362b 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -3,7 +3,7 @@ # Initialization script normally executed in the interpreter for each # Tk-based application. Arranges class bindings for widgets. # -# RCS: @(#) $Id: tk.tcl,v 1.27 2000/10/31 01:12:38 hobbs Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.28 2001/03/30 07:04:35 hobbs Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -291,7 +291,10 @@ switch $tcl_platform(platform) { switch $tcl_platform(os) { "IRIX" - "Linux" { event add <> } - "HP-UX" { event add <> } + "HP-UX" { + # This seems to be correct on *some* HP systems. + catch { event add <> } + } } } trace variable tk_strictMotif w tkEventMotifBindings -- cgit v0.12