]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/mdi.cpp
more 2.0b9 updates
[wxWidgets.git] / src / gtk1 / mdi.cpp
index 85eb0270c7b38ea91bf954dfc89d9de2cda875e6..064376b54c6a12a25c3692ab6a811bcf4a011cb8 100644 (file)
 
 const int wxMENU_HEIGHT = 27;
 
+//-----------------------------------------------------------------------------
+// idle system
+//-----------------------------------------------------------------------------
+
+extern void wxapp_install_idle_handler();
+extern bool g_isIdle;
+
 //-----------------------------------------------------------------------------
 // globals
 //-----------------------------------------------------------------------------
@@ -314,6 +321,8 @@ void wxMDIChildFrame::OnActivate( wxActivateEvent &WXUNUSED(event) )
 
 static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* alloc, wxWindow *win )
 {
+    if (g_isIdle) wxapp_install_idle_handler();
+
     if ((win->m_x == alloc->x) &&
         (win->m_y == alloc->y) &&
         (win->m_width == alloc->width) &&