| Index: views/controls/native_control_gtk.cc
|
| diff --git a/views/controls/native_control_gtk.cc b/views/controls/native_control_gtk.cc
|
| index 5a2bed16f014dd5f9d86c102b98aa98551672853..99e00c3624a65ca94ef6189e00ae4c5e7d1ad888 100644
|
| --- a/views/controls/native_control_gtk.cc
|
| +++ b/views/controls/native_control_gtk.cc
|
| @@ -151,12 +151,10 @@ NativeControlGtk::~NativeControlGtk() {
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // NativeControlGtk, View overrides:
|
|
|
| -void NativeControlGtk::SetEnabled(bool enabled) {
|
| - if (IsEnabled() != enabled) {
|
| - View::SetEnabled(enabled);
|
| - if (native_view())
|
| - gtk_widget_set_sensitive(native_view(), IsEnabled());
|
| - }
|
| +void NativeControlGtk::OnEnabledChanged() {
|
| + View::OnEnabledChanged();
|
| + if (native_view())
|
| + gtk_widget_set_sensitive(native_view(), View::IsEnabled());
|
| }
|
|
|
| void NativeControlGtk::ViewHierarchyChanged(bool is_add, View* parent,
|
|
|