From 72d87edb689f47907aac46033b89ad5fbb66a42e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Feb 2005 20:56:54 +0000 Subject: [PATCH] don't use wxBG_STYLE_CUSTOM for GTK1, it breaks background painting there git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/splitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 6052fd67d8..7c5d2354bd 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -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; }