summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorwelch <welch@noemail.net>1998-06-27 18:05:23 (GMT)
committerwelch <welch@noemail.net>1998-06-27 18:05:23 (GMT)
commit9e54810ab83431d4976021d15005c5fe8b4bab5a (patch)
tree51976c1e3d6ee61236801eab64ad438ba5499943 /library
parent2481141c5f7096c9164cfb45a2e180f0dab34f6a (diff)
downloadtk-9e54810ab83431d4976021d15005c5fe8b4bab5a.zip
tk-9e54810ab83431d4976021d15005c5fe8b4bab5a.tar.gz
tk-9e54810ab83431d4976021d15005c5fe8b4bab5a.tar.bz2
plugin update
FossilOrigin-Name: 6b3946354b10b159bee55cda66f5f38e4516d140
Diffstat (limited to 'library')
-rw-r--r--library/bgerror.tcl8
-rw-r--r--library/button.tcl4
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
}
}