]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Add support for gradient stops to wxGraphicsContext.
[wxWidgets.git] / src / common / dlgcmn.cpp
index b0aa66438043fd686f5c5d2fe91aedb0645db123..345d01a2d84d52d86854ee40729353520aef904c 100644 (file)
@@ -472,16 +472,15 @@ wxDEFINE_EVENT( wxEVT_WINDOW_MODAL_DIALOG_CLOSED , wxWindowModalDialogEvent  );
 
 IMPLEMENT_DYNAMIC_CLASS(wxWindowModalDialogEvent, wxCommandEvent)
 
 
 IMPLEMENT_DYNAMIC_CLASS(wxWindowModalDialogEvent, wxCommandEvent)
 
-bool wxDialogBase::ShowWindowModal ()
+void wxDialogBase::ShowWindowModal ()
 {
     ShowModal();
     SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED  );
 {
     ShowModal();
     SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED  );
-    return true;
 }
 
 void wxDialogBase::SendWindowModalDialogEvent ( wxEventType type )
 {
 }
 
 void wxDialogBase::SendWindowModalDialogEvent ( wxEventType type )
 {
-    wxCommandEvent event ( type, GetId());
+    wxWindowModalDialogEvent event ( type, GetId());
     event.SetEventObject(this);
 
     if ( !GetEventHandler()->ProcessEvent(event) )
     event.SetEventObject(this);
 
     if ( !GetEventHandler()->ProcessEvent(event) )