Slightly better fix for resize problems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-01-15 15:51:11 +00:00
parent 8f75cb6c75
commit adc1999b9c
2 changed files with 12 additions and 10 deletions

View File

@@ -1708,16 +1708,17 @@ gtk_window_realized_callback( GtkWidget *WXUNUSED(m_widget), wxWindow *win )
//-----------------------------------------------------------------------------
static
void gtk_window_size_callback( GtkWidget *widget,
GtkAllocation *alloc,
void gtk_window_size_callback( GtkWidget *WXUNUSED(widget),
GtkAllocation *WXUNUSED(alloc),
wxWindow *win )
{
if (g_isIdle)
wxapp_install_idle_handler();
wxSizeEvent event( win->GetSize(), win->GetId() );
event.SetEventObject( win );
win->GetEventHandler()->ProcessEvent( event );
#if wxUSE_CONSTRAINTS
if (win->GetAutoLayout())
win->Layout();
#endif
}