if (g_isIdle)
wxapp_install_idle_handler();
- win->Close();
+ if (win->IsEnabled())
+ win->Close();
return TRUE;
}
{
win->m_width = alloc->width;
win->m_height = alloc->height;
- win->UpdateSize();
+ win->GtkUpdateSize();
}
}
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
- g_openDialogs++;
-
wxTopLevelWindows.Append( this );
m_needParent = FALSE;
{
wxTheApp->ExitMainLoop();
}
-
- g_openDialogs--;
}
void wxDialog::SetTitle( const wxString& title )
m_modalShowing = TRUE;
+ g_openDialogs++;
+
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
+ g_openDialogs--;
+
return GetReturnCode();
}