summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.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/wx/audio_plot.cc
parent750ad2a59ff2b3487859b6c290d06c0129cb6aa0 (diff)
Remove old Connect() wxWidgets API and use Bind().
Diffstat (limited to 'src/wx/audio_plot.cc')
-rw-r--r--src/wx/audio_plot.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index 2539a93d9..7ed792351 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -61,7 +61,7 @@ AudioPlot::AudioPlot (wxWindow* parent)
_colours.push_back (wxColour ( 0, 0, 255));
_colours.push_back (wxColour (100, 100, 100));
- Connect (wxID_ANY, wxEVT_PAINT, wxPaintEventHandler (AudioPlot::paint), 0, this);
+ Bind (wxEVT_PAINT, boost::bind (&AudioPlot::paint, this));
SetMinSize (wxSize (640, 512));
}
@@ -104,7 +104,7 @@ AudioPlot::set_message (wxString s)
}
void
-AudioPlot::paint (wxPaintEvent &)
+AudioPlot::paint ()
{
wxPaintDC dc (this);