From fc55f9616dc00a02427211731e1c4ebd41470889 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 13 Jun 2004 12:50:10 +0000 Subject: [PATCH] fix wxPanel rendering in wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/panelg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 9fba59a9fc..b43832f596 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -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)); -- 2.50.0