fix wxPanel rendering in wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-13 12:50:10 +00:00
parent 2153bf897a
commit fc55f9616d

View File

@@ -124,6 +124,9 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
// so that non-solid background renders correctly under GTK+:
SetThemeEnabled(true);
#ifdef __WXMSW__
// panels don't have the same colour as normal windows under Windows
SetDefaultBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));