Ubuntu 13.10 appears to have a broken GtkFileChooserButton in its GTK as well as...
[dcpomatic.git] / src / wx / audio_mapping_view.cc
index 45d11cf80bf635c49ef72467b41eff2e467c17ce..3136b8679a6140902c225239832148a51f08326f 100644 (file)
@@ -98,7 +98,7 @@ AudioMappingView::AudioMappingView (wxWindow* parent)
        _sizer->Add (_grid, 1, wxEXPAND | wxALL);
        SetSizerAndFit (_sizer);
 
-       Connect (wxID_ANY, wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler (AudioMappingView::left_click), 0, this);
+       Bind (wxEVT_GRID_CELL_LEFT_CLICK, boost::bind (&AudioMappingView::left_click, this, _1));
 }
 
 void
@@ -109,15 +109,12 @@ AudioMappingView::left_click (wxGridEvent& ev)
        }
        
        if (_grid->GetCellValue (ev.GetRow(), ev.GetCol()) == wxT("1")) {
-               cout << "set " << ev.GetRow() << " " << ev.GetCol() << " to 0.\n";
                _grid->SetCellValue (ev.GetRow(), ev.GetCol(), wxT("0"));
        } else {
-               cout << "set " << ev.GetRow() << " " << ev.GetCol() << " to 1.\n";
                _grid->SetCellValue (ev.GetRow(), ev.GetCol(), wxT("1"));
        }
 
        _map = AudioMapping (_map.content_channels ());
-       cout << "was: " << _map.dcp_to_content(libdcp::CENTRE).size() << "\n";
        
        for (int i = 0; i < _grid->GetNumberRows(); ++i) {
                for (int j = 1; j < _grid->GetNumberCols(); ++j) {
@@ -127,7 +124,6 @@ AudioMappingView::left_click (wxGridEvent& ev)
                }
        }
 
-       cout << "changed: " << _map.dcp_to_content(libdcp::CENTRE).size() << "\n";
        Changed (_map);
 }