]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
missing commit
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 8699a02e6b50980bc4b64d9815e32d330e5a811e..c760fe0de2699bfc316d3d2d5bf6fa0e6a93c2d7 100644 (file)
@@ -19,7 +19,7 @@
 #endif // WX_PRECOMP
 
 #include "wx/evtloop.h"
-#include "wx/testing.h"
+#include "wx/modalhook.h"
 
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
@@ -138,7 +138,7 @@ void wxDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 
     s_closing.Append(this);
 
-    wxCommandEvent cancelEvent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
+    wxCommandEvent cancelEvent(wxEVT_BUTTON, wxID_CANCEL);
     cancelEvent.SetEventObject( this );
     HandleWindowEvent(cancelEvent);
     s_closing.DeleteObject(this);
@@ -183,7 +183,7 @@ void wxDialog::SetModal( bool WXUNUSED(flag) )
 
 int wxDialog::ShowModal()
 {
-    WX_TESTING_SHOW_MODAL_HOOK();
+    WX_HOOK_MODAL_DIALOG();
 
     if (IsModal())
     {