X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstereo_panner_editor.cc;h=4132ed82cf4c15d86c4067d418963f565cfb48e7;hb=a8d62ce056fe260792d4e72bf8cf2fbff0e8b39b;hp=e7a4a452fe7602fe29645885eb95152ceecb2945;hpb=22b07e0233a29d9633ffa825a79503befaf2e16e;p=ardour.git diff --git a/gtk2_ardour/stereo_panner_editor.cc b/gtk2_ardour/stereo_panner_editor.cc index e7a4a452fe..4132ed82cf 100644 --- a/gtk2_ardour/stereo_panner_editor.cc +++ b/gtk2_ardour/stereo_panner_editor.cc @@ -1,21 +1,20 @@ /* - Copyright (C) 2012 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) 2016 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #include #include "gtkmm2ext/utils.h" @@ -25,12 +24,14 @@ #include "pbd/controllable.h" #include "stereo_panner_editor.h" #include "stereo_panner.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace Gtk; using namespace Gtkmm2ext; +using PBD::Controllable; + StereoPannerEditor::StereoPannerEditor (StereoPanner* p) : PannerEditor (_("Stereo Panner")) , _panner (p) @@ -103,7 +104,7 @@ StereoPannerEditor::position_changed () _ignore_changes = true; double const v = _position.get_value() / 100; - _panner->get_position_controllable()->set_value (v); + _panner->get_position_controllable()->set_value (v, Controllable::NoGroup); set_width_range (); _ignore_changes = false; } @@ -117,7 +118,7 @@ StereoPannerEditor::width_changed () _ignore_changes = true; double const v = _width.get_value() / 100; - _panner->get_width_controllable()->set_value (v); + _panner->get_width_controllable()->set_value (v, Controllable::NoGroup); set_position_range (); _ignore_changes = false; }