From 036e304638a9f54fe0fba42a6f3d4f95cca5ce6c Mon Sep 17 00:00:00 2001 From: tmh Date: Tue, 9 Sep 2008 18:17:54 +0000 Subject: a final fix --- library/menu.tcl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/menu.tcl b/library/menu.tcl index c752498..79aa199 100644 --- a/library/menu.tcl +++ b/library/menu.tcl @@ -4,7 +4,7 @@ # It also implements keyboard traversal of menus and implements a few # other utility procedures related to menus. # -# RCS: @(#) $Id: menu.tcl,v 1.30 2008/09/09 17:48:58 tmh Exp $ +# RCS: @(#) $Id: menu.tcl,v 1.31 2008/09/09 18:17:54 tmh Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -243,7 +243,7 @@ proc ::tk::MbLeave w { proc ::tk::MbPost {w {x {}} {y {}}} { global errorInfo variable ::tk::Priv - global tcl_platform tk_strictMotif + global tcl_platform if {[$w cget -state] eq "disabled" || $w eq $Priv(postedMb)} { return @@ -392,7 +392,7 @@ proc ::tk::MbPost {w {x {}} {y {}}} { # is a posted menubutton. proc ::tk::MenuUnpost menu { - global tcl_platform tk_strictMotif + global tcl_platform variable ::tk::Priv set mb $Priv(postedMb) @@ -579,7 +579,7 @@ proc ::tk::MenuMotion {menu x y state} { proc ::tk::MenuButtonDown menu { variable ::tk::Priv - global tcl_platform tk_strictMotif + global tcl_platform if {![winfo viewable $menu]} { return -- cgit v0.12