X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_audiotrack.cc;h=323562c278864f78ddf51902a6e9be7d699549a5;hb=62c4e88a9d8f4a7b019243fe9a10830b1da0150c;hp=a60a25cefd1de9dbb9bc396cdfefe4c6b46024ee;hpb=59da788793186d90c30b10654bcfd4d20a7d6eb3;p=ardour.git diff --git a/gtk2_ardour/editor_audiotrack.cc b/gtk2_ardour/editor_audiotrack.cc index a60a25cefd..323562c278 100644 --- a/gtk2_ardour/editor_audiotrack.cc +++ b/gtk2_ardour/editor_audiotrack.cc @@ -1,35 +1,36 @@ /* - Copyright (C) 2000-2007 Paul Davis - - This program 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, - 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. - -*/ + * Copyright (C) 2006-2012 David Robillard + * Copyright (C) 2007-2016 Paul Davis + * Copyright (C) 2009-2010 Carl Hetherington + * + * This program 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, + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #include "ardour/rc_configuration.h" #include "canvas/canvas.h" -#include "ardour_ui.h" #include "editor.h" #include "editing.h" #include "audio_time_axis.h" #include "route_time_axis.h" #include "audio_region_view.h" #include "selection.h" +#include "ui_config.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace ARDOUR; using namespace PBD; @@ -39,7 +40,7 @@ Editor::start_updating_meters () { RouteTimeAxisView* rtv; - if (is_mapped() && _session) { + if (contents().is_mapped() && _session) { for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { if ((rtv = dynamic_cast(*i)) != 0) { rtv->reset_meter (); @@ -57,7 +58,7 @@ Editor::stop_updating_meters () meters_running = false; - if (is_mapped() && _session) { + if (contents().is_mapped() && _session) { for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { if ((rtv = dynamic_cast(*i)) != 0) { rtv->hide_meter (); @@ -69,7 +70,8 @@ Editor::stop_updating_meters () void Editor::toggle_meter_updating() { - if (Config->get_show_track_meters()) { + DisplaySuspender ds; + if (UIConfiguration::instance().get_show_track_meters()) { start_updating_meters (); } else { stop_updating_meters ();