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/server_dialog.cc | |
| parent | 750ad2a59ff2b3487859b6c290d06c0129cb6aa0 (diff) | |
Remove old Connect() wxWidgets API and use Bind().
Diffstat (limited to 'src/wx/server_dialog.cc')
| -rw-r--r-- | src/wx/server_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/server_dialog.cc b/src/wx/server_dialog.cc index 33cb392bf..0f41b5b90 100644 --- a/src/wx/server_dialog.cc +++ b/src/wx/server_dialog.cc @@ -41,9 +41,9 @@ ServerDialog::ServerDialog (wxWindow* parent, ServerDescription* server) _threads = new wxSpinCtrl (this, wxID_ANY); table->Add (_threads, 1, wxEXPAND); - _host->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (ServerDialog::host_changed), 0, this); + _host->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&ServerDialog::host_changed, this)); _threads->SetRange (0, 256); - _threads->Connect (wxID_ANY, wxEVT_COMMAND_SPINCTRL_UPDATED, wxCommandEventHandler (ServerDialog::threads_changed), 0, this); + _threads->Bind (wxEVT_COMMAND_SPINCTRL_UPDATED, boost::bind (&ServerDialog::threads_changed, this)); _host->SetValue (std_to_wx (_server->host_name ())); _threads->SetValue (_server->threads ()); @@ -62,13 +62,13 @@ ServerDialog::ServerDialog (wxWindow* parent, ServerDescription* server) } void -ServerDialog::host_changed (wxCommandEvent &) +ServerDialog::host_changed () { _server->set_host_name (wx_to_std (_host->GetValue ())); } void -ServerDialog::threads_changed (wxCommandEvent &) +ServerDialog::threads_changed () { _server->set_threads (_threads->GetValue ()); } |
