From 2bec2a4b962e25529e86cf4340ca12e807a0c44d Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 13 Apr 2009 21:26:36 +0000 Subject: Fix the other issue from [Bug 2759119]. --- ChangeLog | 4 ++++ library/tk.tcl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 753e180..5fcb335 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-04-13 Donal K. Fellows + * library/tk.tcl: Corrected another problem; can't determine the exact + type of OS - needed for figuring out how to guess the correct binding + in some circumstances - in a safe interpreter. + * library/tkfbox.tcl: [Bug 2759119]: Corrected level handling for the * library/xmfbox.tcl: -typevariable option following updates to tk.tcl [Patch 2739360]: Use more modern images from Tango set for the non- diff --git a/library/tk.tcl b/library/tk.tcl index ac813d1..7f7926a 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.85 2009/04/11 12:49:49 dkf Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.86 2009/04/13 21:26:36 dkf Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -369,7 +369,7 @@ switch -exact -- [tk windowingsystem] { event add <> event add <> event add <> - if {$tcl_platform(os) eq "Darwin"} { + if {[info exists tcl_platform(os)] && $tcl_platform(os) eq "Darwin"} { event add <> } -- cgit v0.12