Fix crash when X11 is not available for VST UIs
[ardour.git] / gtk2_ardour / mono_panner_editor.cc
index 134c812822159664f97a6080e75b4e7de2a71931..8645d799604d147137b1d3fa984da0266d93bd80 100644 (file)
@@ -1,34 +1,37 @@
 /*
-    Copyright (C) 2012 Paul Davis
+ * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
+ * Copyright (C) 2016 Paul Davis <paul@linuxaudiosystems.com>
+ *
+ * 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 <gtkmm/table.h>
 
-    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.
-
-*/
-
-#include <gtkmm.h>
 #include "gtkmm2ext/utils.h"
 #include "gtkmm2ext/gtk_ui.h"
 #include "gtkmm2ext/gui_thread.h"
 #include "pbd/controllable.h"
 #include "mono_panner_editor.h"
 #include "mono_panner.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
+using PBD::Controllable;
+
 MonoPannerEditor::MonoPannerEditor (MonoPanner* p)
        : PannerEditor (_("Mono Panner"))
        , _panner (p)
@@ -98,7 +101,7 @@ MonoPannerEditor::left_changed ()
 
        _ignore_changes = true;
        _right.set_value (100 * v);
-       _panner->get_controllable()->set_value (v);
+       _panner->get_controllable()->set_value (v, Controllable::NoGroup);
        _ignore_changes = false;
 }
 
@@ -113,7 +116,7 @@ MonoPannerEditor::right_changed ()
 
        _ignore_changes = true;
        _left.set_value (100 * (1 - v));
-       _panner->get_controllable()->set_value (v);
+       _panner->get_controllable()->set_value (v, Controllable::NoGroup);
        _ignore_changes = false;
 }