Chromium Code Reviews| Index: views/controls/button/checkbox.cc |
| diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc |
| index 71116cdd811f1c02bab97a029ef209b10136b350..0f3c47a0b6d6932182044c49b2e6943663631981 100644 |
| --- a/views/controls/button/checkbox.cc |
| +++ b/views/controls/button/checkbox.cc |
| @@ -90,10 +90,10 @@ int Checkbox::GetHeightForWidth(int w) { |
| return label_->GetHeightForWidth(std::max(prefsize.height(), w - width)); |
| } |
| -void Checkbox::SetEnabled(bool enabled) { |
| - NativeButtonBase::SetEnabled(enabled); |
| +void Checkbox::OnEnabledChanged() { |
| + NativeButtonBase::OnEnabledChanged(); |
| if (label_) |
| - label_->SetEnabled(enabled); |
| + label_->SetEnabled(View::IsEnabled()); |
|
Ben Goodger (Google)
2011/05/27 17:43:02
In these cases you should be able to just call IsE
tfarina
2011/05/27 18:05:07
Done.
|
| } |
| void Checkbox::Layout() { |