X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b256b4ef8ef5b6e8fde6df74e8076c123224dd94..e4e84ccdb69bff1b2580a6b685c7a51559388364:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 54e664c2ad..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; } @@ -502,7 +506,7 @@ void wxSplitterWindow::DrawSash(wxDC& dc) m_sashPosition, m_splitMode == wxSPLIT_VERTICAL ? wxVERTICAL : wxHORIZONTAL, - m_isHot ? wxCONTROL_CURRENT : 0 + m_isHot ? (int)wxCONTROL_CURRENT : 0 ); } @@ -711,7 +715,7 @@ void wxSplitterWindow::Initialize(wxWindow *window) if (! window->IsShown()) window->Show(); - + m_windowOne = window; m_windowTwo = (wxWindow *) NULL; DoSetSashPosition(0); @@ -737,7 +741,7 @@ bool wxSplitterWindow::DoSplit(wxSplitMode mode, window1->Show(); if (! window2->IsShown()) window2->Show(); - + m_splitMode = mode; m_windowOne = window1; m_windowTwo = window2;