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
This commit is contained in:
parent
12148be28d
commit
72d87edb68
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user