Disabled horizontal report mode scrolling in wxListCtrl
as it skrews up the display, Corrected disabling the closing of top level window when there are open (modal) dialogs, Minor change to redrawing window-less widgets. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -267,8 +267,6 @@ bool wxDialog::Create( wxWindow *parent,
|
||||
const wxPoint &pos, const wxSize &size,
|
||||
long style, const wxString &name )
|
||||
{
|
||||
g_openDialogs++;
|
||||
|
||||
wxTopLevelWindows.Append( this );
|
||||
|
||||
m_needParent = FALSE;
|
||||
@@ -345,8 +343,6 @@ wxDialog::~wxDialog()
|
||||
{
|
||||
wxTheApp->ExitMainLoop();
|
||||
}
|
||||
|
||||
g_openDialogs--;
|
||||
}
|
||||
|
||||
void wxDialog::SetTitle( const wxString& title )
|
||||
@@ -631,10 +627,14 @@ int wxDialog::ShowModal()
|
||||
|
||||
m_modalShowing = TRUE;
|
||||
|
||||
g_openDialogs++;
|
||||
|
||||
gtk_grab_add( m_widget );
|
||||
gtk_main();
|
||||
gtk_grab_remove( m_widget );
|
||||
|
||||
g_openDialogs--;
|
||||
|
||||
return GetReturnCode();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user