From dc924db851e1db5f2bb90de01ad010c6baa7c8c6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 17 Sep 2014 09:37:39 -0400 Subject: [PATCH] correctly connect to Location static signals --- gtk2_ardour/editor.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 425341e41a..2859954742 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -553,6 +553,12 @@ Editor::Editor () _snapshots = new EditorSnapshots (this); _locations = new EditorLocations (this); + /* these are static location signals */ + + Location::start_changed.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, _1), gui_context()); + Location::end_changed.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, _1), gui_context()); + Location::changed.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, _1), gui_context()); + add_notebook_page (_("Regions"), _regions->widget ()); add_notebook_page (_("Tracks & Busses"), _routes->widget ()); add_notebook_page (_("Snapshots"), _snapshots->widget ());