a-fluidsynth: implement LV2_BANKPATCH__notify
[ardour.git] / gtk2_ardour / video_monitor.cc
index ece1856d545e8be9903f038307538611109a4452..56dad67dc87d4bb4c128a168a1410a691e0d793c 100644 (file)
@@ -28,7 +28,7 @@
 #include "editor.h"
 #include "video_monitor.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace PBD;
@@ -255,9 +255,7 @@ VideoMonitor::is_started ()
 void
 VideoMonitor::forward_keyevent (unsigned int keyval)
 {
-       Editor* ed = dynamic_cast<Editor*>(&PublicEditor::instance());
-       if (!ed) return;
-       emulate_key_event(ed, keyval);
+       emulate_key_event (keyval);
 }
 
 void
@@ -432,8 +430,8 @@ VideoMonitor::save_session ()
 
        for(XJSettings::const_iterator it = xjadeo_settings.begin(); it != xjadeo_settings.end(); ++it) {
          XMLNode* child = node->add_child (X_("XJSetting"));
-               child->add_property (X_("k"), it->first);
-               child->add_property (X_("v"), it->second);
+               child->set_property (X_("k"), it->first);
+               child->set_property (X_("v"), it->second);
        }
 }
 
@@ -443,6 +441,7 @@ VideoMonitor::set_session (ARDOUR::Session *s)
 {
        SessionHandlePtr::set_session (s);
        if (!_session) { return; }
+       ARDOUR::Config->ParameterChanged.connect (*this, invalidator (*this), ui_bind (&VideoMonitor::parameter_changed, this, _1), gui_context());
        _session->config.ParameterChanged.connect (*this, invalidator (*this), ui_bind (&VideoMonitor::parameter_changed, this, _1), gui_context());
        XMLNode* node = _session->extra_xml (X_("XJSettings"));
        if (!node) { return;}