]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxPanel rendering in wxGTK
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 13 Jun 2004 12:50:10 +0000 (12:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 13 Jun 2004 12:50:10 +0000 (12:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/panelg.cpp

index 9fba59a9fcc12ac97744e219a04b0905e02d8058..b43832f59643d6ea206ef213d0e3599448ba880f 100644 (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));