]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Always use UTF-8 for GTK+ strings.
[wxWidgets.git] / src / gtk / button.cpp
index 2ce3e1d0a1460bec6ead071c4d8cc4223ce4e520..8fe4d861bb69e1997da6f0e2032890311d4aa734 100644 (file)
@@ -266,17 +266,13 @@ void wxButton::SetLabel( const wxString &lbl )
 
 bool wxButton::Enable( bool enable )
 {
-    bool isEnabled = IsEnabled();
-
-    if ( !wxControl::Enable( enable ) )
+    if (!base_type::Enable(enable))
         return false;
 
     gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
 
-    if (!isEnabled && enable)
-    {
+    if (enable)
         GTKFixSensitivity();
-    }
 
     GTKUpdateBitmap();