]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use wxBG_STYLE_CUSTOM for GTK1, it breaks background painting there
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Feb 2005 20:56:54 +0000 (20:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Feb 2005 20:56:54 +0000 (20:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 6052fd67d8b138cf52a5f5c69a7a73c479c6a598..7c5d2354bdf3a0647d8976e7411a04b43e3117b6 100644 (file)
@@ -96,9 +96,13 @@ bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id,
 
     m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
 
+    // FIXME: with this line the background is not erased at all under GTK1,
+    //        so temporary avoid it there
+#if !defined(__WXGTK__) || defined(__WXGTK20__)
     // don't erase the splitter background, it's pointless as we overwrite it
     // anyhow
     SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+#endif
 
     return true;
 }