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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user