]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Standardize on using "Added" instead of "Add" in the change log.
[wxWidgets.git] / src / gtk / textctrl.cpp
index cd1e766045b5f4b4807d2c3433af4b3b5f15c66e..629a6fbfae7d315c04ae4fc56ce469173249a6ee 100644 (file)
@@ -1341,26 +1341,6 @@ bool wxTextCtrl::Enable( bool enable )
     return true;
 }
 
-// wxGTK-specific: called recursively by Enable,
-// to give widgets an opportunity to correct their colours after they
-// have been changed by Enable
-void wxTextCtrl::OnEnabled(bool WXUNUSED(enable))
-{
-    // If we have a custom background colour, we use this colour in both
-    // disabled and enabled mode, or we end up with a different colour under the
-    // text.
-    wxColour oldColour = GetBackgroundColour();
-    if (oldColour.IsOk())
-    {
-        // Need to set twice or it'll optimize the useful stuff out
-        if (oldColour == * wxWHITE)
-            SetBackgroundColour(*wxBLACK);
-        else
-            SetBackgroundColour(*wxWHITE);
-        SetBackgroundColour(oldColour);
-    }
-}
-
 void wxTextCtrl::MarkDirty()
 {
     m_modified = true;