why the heck should something that reacts on wxID_CLOSE be called OnQuit?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -169,7 +169,7 @@ protected:
|
|||||||
void OnActivate(wxActivateEvent& event);
|
void OnActivate(wxActivateEvent& event);
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
void OnQuit(wxCommandEvent& event);
|
void OnClose(wxCommandEvent& event);
|
||||||
void OnAbout(wxCommandEvent& event);
|
void OnAbout(wxCommandEvent& event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1522,7 +1522,7 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
void wxHtmlHelpFrame::OnQuit(wxCommandEvent& event)
|
void wxHtmlHelpFrame::OnClose(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
Close(TRUE);
|
Close(TRUE);
|
||||||
}
|
}
|
||||||
@@ -1550,7 +1550,7 @@ BEGIN_EVENT_TABLE(wxHtmlHelpFrame, wxFrame)
|
|||||||
EVT_COMBOBOX(wxID_HTML_BOOKMARKSLIST, wxHtmlHelpFrame::OnBookmarksSel)
|
EVT_COMBOBOX(wxID_HTML_BOOKMARKSLIST, wxHtmlHelpFrame::OnBookmarksSel)
|
||||||
EVT_CLOSE(wxHtmlHelpFrame::OnCloseWindow)
|
EVT_CLOSE(wxHtmlHelpFrame::OnCloseWindow)
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnQuit)
|
EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnClose)
|
||||||
EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout)
|
EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user