diff options
Diffstat (limited to 'library/button.tcl')
-rw-r--r-- | library/button.tcl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/library/button.tcl b/library/button.tcl index 55937e2..65971d8 100644 --- a/library/button.tcl +++ b/library/button.tcl @@ -4,7 +4,7 @@ # checkbutton, and radiobutton widgets and provides procedures # that help in implementing those bindings. # -# RCS: @(#) $Id: button.tcl,v 1.14 2002/08/13 20:53:35 hobbs Exp $ +# RCS: @(#) $Id: button.tcl,v 1.15 2002/08/31 06:12:28 das Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -18,7 +18,8 @@ # The code below creates the default class bindings for buttons. #------------------------------------------------------------------------- -if {[string equal "macintosh" $tcl_platform(platform)]} { +if {[string equal [tk windowingsystem] "classic"] + || [string equal [tk windowingsystem] "aqua"]} { bind Radiobutton <Enter> { tk::ButtonEnter %W } @@ -68,7 +69,7 @@ if {[string equal "windows" $tcl_platform(platform)]} { tk::CheckRadioEnter %W } } -if {[string equal "unix" $tcl_platform(platform)]} { +if {[string equal "x11" [tk windowingsystem]]} { bind Checkbutton <Return> { if {!$tk_strictMotif} { tk::CheckRadioInvoke %W @@ -298,7 +299,7 @@ proc ::tk::CheckRadioDown w { } -if {[string equal "unix" $tcl_platform(platform)]} { +if {[string equal "x11" [tk windowingsystem]]} { ##################### # Unix implementation @@ -425,7 +426,8 @@ proc ::tk::ButtonUp w { } -if {[string equal "macintosh" $tcl_platform(platform)]} { +if {[string equal [tk windowingsystem] "classic"] + || [string equal [tk windowingsystem] "aqua"]} { #################### # Mac implementation |