At least under GTK2, we do not need m_widget->window to be non-NULL in order to successfully change the background colour

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock 2004-11-22 16:37:27 +00:00
parent 2faa8e74b5
commit c2094564d7
2 changed files with 4 additions and 0 deletions

View File

@ -1483,8 +1483,10 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
if ( !wxControl::SetBackgroundColour( colour ) )
return FALSE;
#ifndef __WXGTK20__
if (!m_widget->window)
return FALSE;
#endif
if (!m_backgroundColour.Ok())
return FALSE;

View File

@ -1483,8 +1483,10 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
if ( !wxControl::SetBackgroundColour( colour ) )
return FALSE;
#ifndef __WXGTK20__
if (!m_widget->window)
return FALSE;
#endif
if (!m_backgroundColour.Ok())
return FALSE;