remove wxWindow::m_needParent and use GTKNeedsParent() which can be overridden in just wxMenuBar (and not set in each and every wxGTK control)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-23 15:16:06 +00:00
parent fbcb02294f
commit e8375af8ff
39 changed files with 49 additions and 96 deletions

View File

@@ -2229,7 +2229,6 @@ void wxWindowGTK::Init()
m_sizeSet = false;
m_hasVMT = false;
m_needParent = true;
m_isBeingDeleted = false;
m_showOnIdle= false;
@@ -2452,7 +2451,10 @@ wxWindowGTK::~wxWindowGTK()
bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const wxSize &size )
{
wxCHECK_MSG( !m_needParent || parent, false, wxT("Need complete parent.") );
if ( GTKNeedsParent() )
{
wxCHECK_MSG( parent, false, wxT("Must have non-NULL parent") );
}
// Use either the given size, or the default if -1 is given.
// See wxWindowBase for these functions.