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:
parent
2faa8e74b5
commit
c2094564d7
@ -1483,8 +1483,10 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
|
|||||||
if ( !wxControl::SetBackgroundColour( colour ) )
|
if ( !wxControl::SetBackgroundColour( colour ) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
#ifndef __WXGTK20__
|
||||||
if (!m_widget->window)
|
if (!m_widget->window)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!m_backgroundColour.Ok())
|
if (!m_backgroundColour.Ok())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1483,8 +1483,10 @@ bool wxTextCtrl::SetBackgroundColour( const wxColour &colour )
|
|||||||
if ( !wxControl::SetBackgroundColour( colour ) )
|
if ( !wxControl::SetBackgroundColour( colour ) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
#ifndef __WXGTK20__
|
||||||
if (!m_widget->window)
|
if (!m_widget->window)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!m_backgroundColour.Ok())
|
if (!m_backgroundColour.Ok())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user