]> git.saurik.com Git - wxWidgets.git/commitdiff
removed wrong bg colour handling code
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jun 2004 22:16:40 +0000 (22:16 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jun 2004 22:16:40 +0000 (22:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp

index 5f80c5d19bb7279e9281e85feefec6c1894c028f..1a9ae3ca2d7d9e55b9f87afb6d2869ea27c2a004 100644 (file)
@@ -1416,14 +1416,6 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
     if (!m_widget->window)
         return FALSE;
 
-    wxColour sysbg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
-    if (sysbg.Red() == colour.Red() &&
-        sysbg.Green() == colour.Green() &&
-        sysbg.Blue() == colour.Blue())
-    {
-        return FALSE; // FIXME or TRUE?
-    }
-
     if (!m_backgroundColour.Ok())
         return FALSE;
 
index 5f80c5d19bb7279e9281e85feefec6c1894c028f..1a9ae3ca2d7d9e55b9f87afb6d2869ea27c2a004 100644 (file)
@@ -1416,14 +1416,6 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
     if (!m_widget->window)
         return FALSE;
 
-    wxColour sysbg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
-    if (sysbg.Red() == colour.Red() &&
-        sysbg.Green() == colour.Green() &&
-        sysbg.Blue() == colour.Blue())
-    {
-        return FALSE; // FIXME or TRUE?
-    }
-
     if (!m_backgroundColour.Ok())
         return FALSE;