Import build of Tcl/Tk 8.6.10
This commit is contained in:
@@ -748,11 +748,15 @@ proc ::tk::CheckLeave {w} {
|
||||
$w configure -state normal
|
||||
}
|
||||
|
||||
# Restore the original button "selected" color; assume that the user
|
||||
# wasn't monkeying around with things too much.
|
||||
# Restore the original button "selected" color; but only if the user
|
||||
# has not changed it in the meantime.
|
||||
|
||||
if {![$w cget -indicatoron] && [info exist Priv($w,selectcolor)]} {
|
||||
$w configure -selectcolor $Priv($w,selectcolor)
|
||||
if {[$w cget -selectcolor] eq $Priv($w,selectcolor)
|
||||
|| ([info exist Priv($w,aselectcolor)] &&
|
||||
[$w cget -selectcolor] eq $Priv($w,aselectcolor))} {
|
||||
$w configure -selectcolor $Priv($w,selectcolor)
|
||||
}
|
||||
}
|
||||
unset -nocomplain Priv($w,selectcolor) Priv($w,aselectcolor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user