summaryrefslogtreecommitdiffstats
path: root/library/menu.tcl
diff options
context:
space:
mode:
authortmh <tmh@noemail.net>2008-09-09 18:17:08 (GMT)
committertmh <tmh@noemail.net>2008-09-09 18:17:08 (GMT)
commit0fce7b68c0b609723d0a0695d92417b236774df9 (patch)
tree30ac1d7fe838d8e0bf73b7b0e4c2e5213502bf6c /library/menu.tcl
parentdb6fdef58386ec2b3905ec69a90b6ccf86c6df9c (diff)
downloadtk-0fce7b68c0b609723d0a0695d92417b236774df9.zip
tk-0fce7b68c0b609723d0a0695d92417b236774df9.tar.gz
tk-0fce7b68c0b609723d0a0695d92417b236774df9.tar.bz2
a final fix
FossilOrigin-Name: 622a19cd020fc929a8e161cc09105363ddcb8a86
Diffstat (limited to 'library/menu.tcl')
-rw-r--r--library/menu.tcl16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/menu.tcl b/library/menu.tcl
index b5524dc..c5b7ca7 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.26.2.3 2008/09/09 17:47:21 tmh Exp $
+# RCS: @(#) $Id: menu.tcl,v 1.26.2.4 2008/09/09 18:17:08 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
@@ -261,7 +261,7 @@ proc ::tk::MbPost {w {x {}} {y {}}} {
if {$cur ne ""} {
MenuUnpost {}
}
- if {$tk_strictMotif} {
+ if {$::tk_strictMotif} {
set Priv(cursor) [$w cget -cursor]
$w configure -cursor arrow
}
@@ -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)
@@ -411,7 +411,7 @@ proc ::tk::MenuUnpost menu {
set menu [$mb cget -menu]
$menu unpost
set Priv(postedMb) {}
- if {$tk_strictMotif} {
+ if {$::tk_strictMotif} {
$mb configure -cursor $Priv(cursor)
}
if {[tk windowingsystem] ne "aqua"} {
@@ -461,7 +461,7 @@ proc ::tk::MenuUnpost menu {
}
RestoreOldGrab
if {$Priv(menuBar) ne ""} {
- if {$tk_strictMotif} {
+ if {$::tk_strictMotif} {
$Priv(menuBar) configure -cursor $Priv(cursor)
}
set Priv(menuBar) {}
@@ -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
@@ -596,7 +596,7 @@ proc ::tk::MenuButtonDown menu {
if {$Priv(menuBar) eq {}} {
set Priv(menuBar) $menu
- if {$tk_strictMotif} {
+ if {$::tk_strictMotif} {
set Priv(cursor) [$menu cget -cursor]
$menu configure -cursor arrow
}