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 static
void gtk_window_size_callback( GtkWidget *widget, void gtk_window_size_callback( GtkWidget *WXUNUSED(widget),
GtkAllocation *alloc, GtkAllocation *WXUNUSED(alloc),
wxWindow *win ) wxWindow *win )
{ {
if (g_isIdle) if (g_isIdle)
wxapp_install_idle_handler(); wxapp_install_idle_handler();
wxSizeEvent event( win->GetSize(), win->GetId() ); #if wxUSE_CONSTRAINTS
event.SetEventObject( win ); if (win->GetAutoLayout())
win->GetEventHandler()->ProcessEvent( event ); win->Layout();
#endif
} }

View File

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