Commited fix for wrong background colour in TLWs. I don't

know if this will play well with themes. Alternatively,
   one could change one of the few lines below to parent == this;


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2005-02-20 19:35:40 +00:00
parent 1bbcb0d516
commit 4adb6d28f7
2 changed files with 2 additions and 2 deletions

View File

@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
// widget to draw on
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
{
// find ancestor from which to steal background
wxWindow *parent = GetParent();

View File

@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
// widget to draw on
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
{
// find ancestor from which to steal background
wxWindow *parent = GetParent();