mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Replace more Connect with Bind; needed redeclaration of custom events
This commit is contained in:
@@ -147,14 +147,12 @@ HistoryWindow::HistoryWindow(AudacityProject *parent, UndoManager *manager):
|
||||
mList->SetColumnWidth(0, mList->GetClientSize().x - mList->GetColumnWidth(1));
|
||||
mList->SetTextColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
||||
|
||||
wxTheApp->Connect(EVT_AUDIOIO_PLAYBACK,
|
||||
wxCommandEventHandler(HistoryWindow::OnAudioIO),
|
||||
NULL,
|
||||
wxTheApp->Bind(EVT_AUDIOIO_PLAYBACK,
|
||||
&HistoryWindow::OnAudioIO,
|
||||
this);
|
||||
|
||||
wxTheApp->Connect(EVT_AUDIOIO_CAPTURE,
|
||||
wxCommandEventHandler(HistoryWindow::OnAudioIO),
|
||||
NULL,
|
||||
wxTheApp->Bind(EVT_AUDIOIO_CAPTURE,
|
||||
&HistoryWindow::OnAudioIO,
|
||||
this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user