diff options
author | welch <welch> | 1998-06-27 18:05:23 (GMT) |
---|---|---|
committer | welch <welch> | 1998-06-27 18:05:23 (GMT) |
commit | d010dca55fd7a02e3fe6e50910359d8d4915f003 (patch) | |
tree | 51976c1e3d6ee61236801eab64ad438ba5499943 | |
parent | 16e849012c5065caad307d5733660750a6e35204 (diff) | |
download | tk-d010dca55fd7a02e3fe6e50910359d8d4915f003.zip tk-d010dca55fd7a02e3fe6e50910359d8d4915f003.tar.gz tk-d010dca55fd7a02e3fe6e50910359d8d4915f003.tar.bz2 |
plugin update
-rw-r--r-- | library/bgerror.tcl | 8 | ||||
-rw-r--r-- | library/button.tcl | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl index d2b1cdc..2c43305 100644 --- a/library/bgerror.tcl +++ b/library/bgerror.tcl @@ -82,10 +82,10 @@ proc bgerror err { wm withdraw $w update idletasks - set x [expr [winfo screenwidth $w]/2 - [winfo reqwidth $w]/2 \ - - [winfo vrootx [winfo parent $w]]] - set y [expr [winfo screenheight $w]/2 - [winfo reqheight $w]/2 \ - - [winfo vrooty [winfo parent $w]]] + set x [expr {[winfo screenwidth $w]/2 - [winfo reqwidth $w]/2 \ + - [winfo vrootx [winfo parent $w]]}] + set y [expr {[winfo screenheight $w]/2 - [winfo reqheight $w]/2 \ + - [winfo vrooty [winfo parent $w]]}] wm geom $w +$x+$y wm deiconify $w diff --git a/library/button.tcl b/library/button.tcl index b017b80..e17997e 100644 --- a/library/button.tcl +++ b/library/button.tcl @@ -69,12 +69,12 @@ if {$tcl_platform(platform) == "windows"} { } if {$tcl_platform(platform) == "unix"} { bind Checkbutton <Return> { - if !$tk_strictMotif { + if {!$tk_strictMotif} { tkCheckRadioInvoke %W } } bind Radiobutton <Return> { - if !$tk_strictMotif { + if {!$tk_strictMotif} { tkCheckRadioInvoke %W } } |