Color cubes now get created on 8-bit true-color

visual as well. (This exists).
  Added MakeModal() to wxFrame.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-05-27 19:54:05 +00:00
parent 00a395425c
commit ca26177c30
7 changed files with 67 additions and 4 deletions

View File

@@ -742,6 +742,20 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
m_resizing = FALSE;
}
void wxFrame::MakeModal( bool modal )
{
if (modal)
{
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
}
else
{
gtk_main_quit();
}
}
void wxFrame::OnInternalIdle()
{
if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow))