summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmh <tmh>2008-09-09 17:47:18 (GMT)
committertmh <tmh>2008-09-09 17:47:18 (GMT)
commite7913e82618b66f1a1b2be5f584a04df9e56e43c (patch)
tree79dece4c0dd85c93d197e78affccd29cda1c99c7
parentc6f7cd66e90f8ec68cde960cc4b1bbf21631110a (diff)
downloadtk-e7913e82618b66f1a1b2be5f584a04df9e56e43c.zip
tk-e7913e82618b66f1a1b2be5f584a04df9e56e43c.tar.gz
tk-e7913e82618b66f1a1b2be5f584a04df9e56e43c.tar.bz2
add global commands for tk_strictMotif variable
-rw-r--r--ChangeLog4
-rw-r--r--library/menu.tcl8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5edb7e8..0f6c691 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-25 Todd M. Helfter <tmh@users.sourceforge.net>
+
+ * library/menu.tcl: additional fix for [Bug 1023955]
+
2008-09-08 Todd M. Helfter <tmh@users.sourceforge.net>
* doc/menu.n: fix typo in docs [Bug 2098425]
diff --git a/library/menu.tcl b/library/menu.tcl
index dd3101b..b5524dc 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.2 2008/08/27 18:51:07 tmh Exp $
+# RCS: @(#) $Id: menu.tcl,v 1.26.2.3 2008/09/09 17:47:21 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
+ global tcl_platform tk_strictMotif
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
+ global tcl_platform tk_strictMotif
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
+ global tcl_platform tk_strictMotif
if {![winfo viewable $menu]} {
return