]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
fill up the gauge when Update(maximum) is called
[wxWidgets.git] / src / generic / panelg.cpp
index 6a77e15ff807a2f5804981fd43a320606b4a8616..b43832f59643d6ea206ef213d0e3599448ba880f 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     04/01/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -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));