From: <bi...@us...> - 2009-06-24 20:35:19
|
Revision: 11272 http://amsn.svn.sourceforge.net/amsn/?rev=11272&view=rev Author: billiob Date: 2009-06-24 20:34:02 +0000 (Wed, 24 Jun 2009) Log Message: ----------- fix voipcontrols for the assistant Modified Paths: -------------- trunk/amsn/utils/voipcontrols/voipcontrols.tcl Modified: trunk/amsn/utils/voipcontrols/voipcontrols.tcl =================================================================== --- trunk/amsn/utils/voipcontrols/voipcontrols.tcl 2009-06-23 00:53:39 UTC (rev 11271) +++ trunk/amsn/utils/voipcontrols/voipcontrols.tcl 2009-06-24 20:34:02 UTC (rev 11272) @@ -185,7 +185,7 @@ snit::widget voipmixer { - option -mutecheckbutton -readonly yes + option -mutecheckbutton -readonly yes -default "" option -volumefrom -default -25 option -volumeto -default 15 option -levelfrom -default -20 @@ -269,18 +269,20 @@ } } - if { $options(-orient) == "vertical" } { - if {$rel >= 0.95} { - $options(-mutecheckbutton) Mute + if { $options(-mutecheckbutton) != ""} { + if { $options(-orient) == "vertical" } { + if {$rel >= 0.95} { + $options(-mutecheckbutton) Mute + } else { + $options(-mutecheckbutton) UnMute + } } else { - $options(-mutecheckbutton) UnMute + if {$rel <= 0.05} { + $options(-mutecheckbutton) Mute + } else { + $options(-mutecheckbutton) UnMute + } } - } else { - if {$rel <= 0.05} { - $options(-mutecheckbutton) Mute - } else { - $options(-mutecheckbutton) UnMute - } } if { $options(-orient) == "vertical" } { @@ -338,18 +340,21 @@ } } - if { $options(-orient) == "vertical" } { - if {$rel >= 0.95} { - $options(-mutecheckbutton) Mute + + if { $options(-mutecheckbutton) != "" } { + if { $options(-orient) == "vertical" } { + if {$rel >= 0.95} { + $options(-mutecheckbutton) Mute + } else { + $options(-mutecheckbutton) UnMute + } } else { - $options(-mutecheckbutton) UnMute + if {$rel <= 0.05} { + $options(-mutecheckbutton) Mute + } else { + $options(-mutecheckbutton) UnMute + } } - } else { - if {$rel <= 0.05} { - $options(-mutecheckbutton) Mute - } else { - $options(-mutecheckbutton) UnMute - } } if { $options(-orient) == "vertical" } { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |