From: Mattia Barbon Date: Thu, 24 Jul 2003 20:06:02 +0000 (+0000) Subject: Compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90b6b974677c26b434fd9810202f4334af2efc27 Compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/prntbase.h b/include/wx/prntbase.h index 067ba6e9a0..4e13fcd4ac 100644 --- a/include/wx/prntbase.h +++ b/include/wx/prntbase.h @@ -274,7 +274,7 @@ public: void OnLast(); void OnGoto(); void OnPrint(); - void OnPrint(wxCommandEvent& WXUNUSED(event)) { OnPrint(); } + void OnPrintButton(wxCommandEvent& WXUNUSED(event)) { OnPrint(); } void OnNextButton(wxCommandEvent & WXUNUSED(event)) { OnNext(); } void OnPreviousButton(wxCommandEvent & WXUNUSED(event)) { OnPrevious(); } void OnFirstButton(wxCommandEvent & WXUNUSED(event)) { OnFirst(); } diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 59a2bc634f..8ab4583a89 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -286,7 +286,7 @@ void wxPreviewCanvas::OnChar(wxKeyEvent &event) BEGIN_EVENT_TABLE(wxPreviewControlBar, wxPanel) EVT_BUTTON(wxID_PREVIEW_CLOSE, wxPreviewControlBar::OnWindowClose) - EVT_BUTTON(wxID_PREVIEW_PRINT, wxPreviewControlBar::OnPrint) + EVT_BUTTON(wxID_PREVIEW_PRINT, wxPreviewControlBar::OnPrintButton) EVT_BUTTON(wxID_PREVIEW_PREVIOUS, wxPreviewControlBar::OnPreviousButton) EVT_BUTTON(wxID_PREVIEW_NEXT, wxPreviewControlBar::OnNextButton) EVT_BUTTON(wxID_PREVIEW_FIRST, wxPreviewControlBar::OnFirstButton)