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;
}
m_firstY = 0;
m_sashPosition = m_requestedSashPosition = 0;
m_sashGravity = 0.0;
- m_lastSize = wxSize(0,0);
+ m_lastSize = wxSize();
m_checkRequestedSashPosition = false;
m_minimumPaneSize = 0;
m_sashCursorWE = wxCursor(wxCURSOR_SIZEWE);
if ( iconized )
{
- m_lastSize = wxSize(0,0);
+ m_lastSize = wxSize();
event.Skip();
m_sashPosition,
m_splitMode == wxSPLIT_VERTICAL ? wxVERTICAL
: wxHORIZONTAL,
- m_isHot ? wxCONTROL_CURRENT : 0
+ m_isHot ? (int)wxCONTROL_CURRENT : 0
);
}
if (! window->IsShown())
window->Show();
-
+
m_windowOne = window;
m_windowTwo = (wxWindow *) NULL;
DoSetSashPosition(0);
window1->Show();
if (! window2->IsShown())
window2->Show();
-
+
m_splitMode = mode;
m_windowOne = window1;
m_windowTwo = window2;