X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilter_editor.cc;h=d70402b5f68c2aaf94ef597b9d9a234215c112f5;hb=280ca5218e193a3c54e5963dda1a80c6e78cc382;hp=4dd18004bfcae15547363c413b99d59f93236a6a;hpb=373f010a7f04add1f49169cbaa60cb7ae5f508d4;p=dcpomatic.git diff --git a/src/wx/filter_editor.cc b/src/wx/filter_editor.cc index 4dd18004b..d70402b5f 100644 --- a/src/wx/filter_editor.cc +++ b/src/wx/filter_editor.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2012 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -34,7 +35,7 @@ FilterEditor::FilterEditor (wxWindow* parent, vector const & act { wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); SetSizer (sizer); - + vector filters = Filter::all (); typedef map > CategoryMap; @@ -64,7 +65,7 @@ FilterEditor::FilterEditor (wxWindow* parent, vector const & act bool const a = find (active.begin(), active.end(), *j) != active.end (); b->SetValue (a); _filters[*j] = b; - b->Bind (wxEVT_COMMAND_CHECKBOX_CLICKED, boost::bind (&FilterEditor::filter_toggled, this)); + b->Bind (wxEVT_CHECKBOX, boost::bind (&FilterEditor::filter_toggled, this)); sizer->Add (b); }