Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: ui/views/controls/native_control_gtk.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/native_control.cc ('k') | ui/views/controls/native_control_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native_control_gtk.cc
diff --git a/ui/views/controls/native_control_gtk.cc b/ui/views/controls/native_control_gtk.cc
index 417e8a8f61f9e66c4373fbe7196176a4db22b497..140f96d2d901b123b2f7a32e2d92fb11cb78e9bf 100644
--- a/ui/views/controls/native_control_gtk.cc
+++ b/ui/views/controls/native_control_gtk.cc
@@ -27,7 +27,7 @@ NativeControlGtk::~NativeControlGtk() {
void NativeControlGtk::OnEnabledChanged() {
View::OnEnabledChanged();
if (native_view())
- gtk_widget_set_sensitive(native_view(), IsEnabled());
+ gtk_widget_set_sensitive(native_view(), enabled());
}
void NativeControlGtk::ViewHierarchyChanged(bool is_add, View* parent,
@@ -66,7 +66,7 @@ void NativeControlGtk::NativeControlCreated(GtkWidget* native_control) {
Attach(native_control);
// Update the newly created GtkWidget with any resident enabled state.
- gtk_widget_set_sensitive(native_view(), IsEnabled());
+ gtk_widget_set_sensitive(native_view(), enabled());
// Listen for focus change event to update the FocusManager focused view.
g_signal_connect(native_control, "focus-in-event",
« no previous file with comments | « ui/views/controls/native_control.cc ('k') | ui/views/controls/native_control_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698