g_free( fontname );
- wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK);
+ wxCommandEvent event(wxEVT_BUTTON, wxID_OK);
event.SetEventObject( dialog );
dialog->HandleWindowEvent( event );
}
if (g_isIdle)
wxapp_install_idle_handler();
- wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
+ wxCommandEvent event(wxEVT_BUTTON, wxID_CANCEL);
event.SetEventObject( dialog );
dialog->HandleWindowEvent( event );
}