summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-26 11:14:41 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-26 11:14:41 +0100
commit16a7ea91e973b327735658857cbf996cc740be77 (patch)
treeab67c21cb8cb85274b079268ef7c8d2160e3cae2 /src/tools/dcpomatic_server.cc
parent750ad2a59ff2b3487859b6c290d06c0129cb6aa0 (diff)
Remove old Connect() wxWidgets API and use Bind().
Diffstat (limited to 'src/tools/dcpomatic_server.cc')
-rw-r--r--src/tools/dcpomatic_server.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc
index 1bfc23ff9..78354c468 100644
--- a/src/tools/dcpomatic_server.cc
+++ b/src/tools/dcpomatic_server.cc
@@ -73,12 +73,12 @@ public:
SetSizer (_sizer);
_sizer->Layout ();
- Connect (ID_timer, wxEVT_TIMER, wxTimerEventHandler (StatusDialog::update));
+ Bind (wxEVT_TIMER, boost::bind (&StatusDialog::update, this), ID_timer);
_timer.Start (1000);
}
private:
- void update (wxTimerEvent &)
+ void update ()
{
_text->ChangeValue (std_to_wx (memory_log->get ()));
_sizer->Layout ();
@@ -108,8 +108,8 @@ public:
SetIcon (icon, std_to_wx ("DCP-o-matic encode server"));
#endif
- Connect (ID_status, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (TaskBarIcon::status));
- Connect (ID_quit, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (TaskBarIcon::quit));
+ Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&TaskBarIcon::status, this), ID_status);
+ Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&TaskBarIcon::quit, this), ID_quit);
}
wxMenu* CreatePopupMenu ()
@@ -121,13 +121,13 @@ public:
}
private:
- void status (wxCommandEvent &)
+ void status ()
{
StatusDialog* d = new StatusDialog;
d->Show ();
}
- void quit (wxCommandEvent &)
+ void quit ()
{
wxTheApp->ExitMainLoop ();
}