diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-26 11:14:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-26 11:14:41 +0100 |
| commit | 16a7ea91e973b327735658857cbf996cc740be77 (patch) | |
| tree | ab67c21cb8cb85274b079268ef7c8d2160e3cae2 /src/wx/timecode.cc | |
| parent | 750ad2a59ff2b3487859b6c290d06c0129cb6aa0 (diff) | |
Remove old Connect() wxWidgets API and use Bind().
Diffstat (limited to 'src/wx/timecode.cc')
| -rw-r--r-- | src/wx/timecode.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc index 36a01f90d..f826dd93f 100644 --- a/src/wx/timecode.cc +++ b/src/wx/timecode.cc @@ -62,11 +62,11 @@ Timecode::Timecode (wxWindow* parent) _set_button = new wxButton (this, wxID_ANY, _("Set")); sizer->Add (_set_button, 0, wxLEFT | wxRIGHT, 8); - _hours->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this); - _minutes->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this); - _seconds->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this); - _frames->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this); - _set_button->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (Timecode::set_clicked), 0, this); + _hours->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&Timecode::changed, this)); + _minutes->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&Timecode::changed, this)); + _seconds->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&Timecode::changed, this)); + _frames->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&Timecode::changed, this)); + _set_button->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&Timecode::set_clicked, this)); _set_button->Enable (false); @@ -107,13 +107,13 @@ Timecode::get (int fps) const } void -Timecode::changed (wxCommandEvent &) +Timecode::changed () { _set_button->Enable (true); } void -Timecode::set_clicked (wxCommandEvent &) +Timecode::set_clicked () { Changed (); _set_button->Enable (false); |
