X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdc48273b49b0b90d9587a1ecc5935d38a160620..c37975fa310b13ee37982c84f940c23c0ee5a2d0:/src/gtk1/dialog.cpp diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index 54bac5264f..8699a02e6b 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -19,6 +19,7 @@ #endif // WX_PRECOMP #include "wx/evtloop.h" +#include "wx/testing.h" #include #include @@ -43,8 +44,6 @@ BEGIN_EVENT_TABLE(wxDialog,wxDialogBase) EVT_CLOSE (wxDialog::OnCloseWindow) END_EVENT_TABLE() -IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxTopLevelWindow) - void wxDialog::Init() { m_returnCode = 0; @@ -184,6 +183,8 @@ void wxDialog::SetModal( bool WXUNUSED(flag) ) int wxDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + if (IsModal()) { wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") );