X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fvideo_monitor.cc;h=a23e2b251604568df7bcf3e25390c20cd0ad4d01;hb=c3d8967870f4a973945e6e6c723bbd8c24ad76eb;hp=ece1856d545e8be9903f038307538611109a4452;hpb=b5c9a92a584b70b2af172e7240d4a58b007e0608;p=ardour.git diff --git a/gtk2_ardour/video_monitor.cc b/gtk2_ardour/video_monitor.cc index ece1856d54..a23e2b2516 100644 --- a/gtk2_ardour/video_monitor.cc +++ b/gtk2_ardour/video_monitor.cc @@ -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(&PublicEditor::instance()); - if (!ed) return; - emulate_key_event(ed, keyval); + emulate_key_event (keyval); } void @@ -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;}