X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilter_view.cc;h=757daf3fa7131a4c3881211afa3b44372c77efd1;hb=16a7ea91e973b327735658857cbf996cc740be77;hp=db6728ba58cd45a2ac05ed47148242ae72a89ab7;hpb=750ad2a59ff2b3487859b6c290d06c0129cb6aa0;p=dcpomatic.git diff --git a/src/wx/filter_view.cc b/src/wx/filter_view.cc index db6728ba5..757daf3fa 100644 --- a/src/wx/filter_view.cc +++ b/src/wx/filter_view.cc @@ -64,7 +64,7 @@ FilterView::FilterView (wxWindow* parent, vector const & active) bool const a = find (active.begin(), active.end(), *j) != active.end (); b->SetValue (a); _filters[*j] = b; - b->Connect (wxID_ANY, wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler (FilterView::filter_toggled), 0, this); + b->Bind (wxEVT_COMMAND_CHECKBOX_CLICKED, boost::bind (&FilterView::filter_toggled, this)); sizer->Add (b); } @@ -73,7 +73,7 @@ FilterView::FilterView (wxWindow* parent, vector const & active) } void -FilterView::filter_toggled (wxCommandEvent &) +FilterView::filter_toggled () { ActiveChanged (); }