X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_audiotrack.cc;h=a60a25cefd1de9dbb9bc396cdfefe4c6b46024ee;hb=3031a99364333b9adcc52c4922687477a1e62337;hp=143da8aa08c8c267f4f13d79ed265961a33330ac;hpb=c3b5e572df797fcbe474f99c7ad4f4e499cbb9c7;p=ardour.git diff --git a/gtk2_ardour/editor_audiotrack.cc b/gtk2_ardour/editor_audiotrack.cc index 143da8aa08..a60a25cefd 100644 --- a/gtk2_ardour/editor_audiotrack.cc +++ b/gtk2_ardour/editor_audiotrack.cc @@ -17,10 +17,10 @@ */ -#include "ardour/location.h" -#include "ardour/audio_diskstream.h" #include "ardour/rc_configuration.h" +#include "canvas/canvas.h" + #include "ardour_ui.h" #include "editor.h" #include "editing.h" @@ -34,21 +34,6 @@ using namespace ARDOUR; using namespace PBD; -void -Editor::set_show_waveforms_recording (bool yn) -{ - AudioTimeAxisView* atv; - - if (_show_waveforms_recording != yn) { - _show_waveforms_recording = yn; - for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { - if ((atv = dynamic_cast(*i)) != 0) { - atv->set_show_waveforms_recording (yn); - } - } - } -} - void Editor::start_updating_meters () { @@ -89,7 +74,7 @@ Editor::toggle_meter_updating() } else { stop_updating_meters (); } - - track_canvas_allocate (track_canvas->get_allocation()); + + track_canvas_viewport_allocate (_track_canvas->get_allocation()); }