Don't emit bogus size events if a child window
is inserted into a frame or dialog. I don't know why I wrote that non-sense back then, but wxMSW doesn't do it either. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,9 +190,6 @@ static void wxInsertChildInFrame( wxFrame* parent, wxWindow* child )
|
||||
child->m_width,
|
||||
child->m_height );
|
||||
}
|
||||
|
||||
// Resize on OnInternalIdle
|
||||
parent->GtkUpdateSize();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -237,10 +237,10 @@ static void gtk_frame_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation*
|
||||
if ((win->m_width != alloc->width) || (win->m_height != alloc->height))
|
||||
{
|
||||
/*
|
||||
wxPrintf( "OnSize from " );
|
||||
wxPrintf( wxT("gtk_frame_size_callback from ") );
|
||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
||||
wxPrintf( win->GetClassInfo()->GetClassName() );
|
||||
wxPrintf( " %d %d %d %d\n", (int)alloc->x,
|
||||
wxPrintf( wxT(" %d %d %d %d\n"), (int)alloc->x,
|
||||
(int)alloc->y,
|
||||
(int)alloc->width,
|
||||
(int)alloc->height );
|
||||
@@ -435,9 +435,6 @@ static void wxInsertChildInTopLevelWindow( wxTopLevelWindowGTK* parent, wxWindow
|
||||
child->m_width,
|
||||
child->m_height );
|
||||
}
|
||||
|
||||
// resize on OnInternalIdle
|
||||
parent->GtkUpdateSize();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user