summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-07 04:26:08 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-07 04:26:08 +0000
commit304356e13d4e4e081408ccaf417e67433b1b8ba7 (patch)
tree0226c2d620d72ff22356e8706d9233bae7f7d215 /views/controls
parent4a74ff1afe53c3a4e1627b1bc553b0b8f016879d (diff)
downloadchromium_src-304356e13d4e4e081408ccaf417e67433b1b8ba7.zip
chromium_src-304356e13d4e4e081408ccaf417e67433b1b8ba7.tar.gz
chromium_src-304356e13d4e4e081408ccaf417e67433b1b8ba7.tar.bz2
Need to update enabled state of gtk wrapper even if native view hasn't been created
Bug=None Test=None Review URL: http://codereview.chromium.org/577043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/button/native_button_gtk.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/views/controls/button/native_button_gtk.cc b/views/controls/button/native_button_gtk.cc
index 317e6bd..79314a8 100644
--- a/views/controls/button/native_button_gtk.cc
+++ b/views/controls/button/native_button_gtk.cc
@@ -48,8 +48,6 @@ void NativeButtonGtk::UpdateFont() {
}
void NativeButtonGtk::UpdateEnabled() {
- if (!native_view())
- return;
SetEnabled(native_button_->IsEnabled());
}