AU: install latency listener
[ardour.git] / gtk2_ardour / automation_controller.cc
index f8e14595bae1c49f665123c3bbd4ad49e7879a08..03054fa98b60ae073eb7b4e3a646c598d6aabbc3 100644 (file)
@@ -36,7 +36,7 @@
 #include "note_select_dialog.h"
 #include "timers.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Gtk;
@@ -90,6 +90,10 @@ AutomationController::AutomationController(boost::shared_ptr<Automatable>
                but->set_controllable(ac);
                but->signal_clicked.connect(
                        sigc::mem_fun(*this, &AutomationController::toggled));
+               const bool active = _adjustment->get_value() >= 0.5;
+               if (but->get_active() != active) {
+                       but->set_active(active);
+               }
                _widget = but;
        } else if (use_knob) {
                ArdourKnob* knob = manage (new ArdourKnob (ArdourKnob::default_elements, ArdourKnob::Detent));