summaryrefslogtreecommitdiff
path: root/libs/ardour/location.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-09-16 21:31:19 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-09-16 21:31:19 -0400
commitb592ce3e442a92a2a29468c94f7738742bd71bb0 (patch)
tree29041a90358da72033d80fa10646a7f4810ae740 /libs/ardour/location.cc
parent78f55f2e4dcd321838d1e194328168a6f9fb8e2d (diff)
Locations should listen to location changed signals, and emit its own changed() signal
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r--libs/ardour/location.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc
index 3fcbbd600b..aab2b4ea85 100644
--- a/libs/ardour/location.cc
+++ b/libs/ardour/location.cc
@@ -44,6 +44,10 @@ using namespace ARDOUR;
using namespace PBD;
PBD::Signal0<void> Location::scene_changed;
+PBD::Signal1<void,Location*> Location::name_changed;
+PBD::Signal1<void,Location*> Location::end_changed;
+PBD::Signal1<void,Location*> Location::start_changed;
+PBD::Signal1<void,Location*> Location::changed;
Location::Location (Session& s)
: SessionHandleRef (s)
@@ -621,6 +625,10 @@ Locations::Locations (Session& s)
: SessionHandleRef (s)
{
current_location = 0;
+
+ Location::changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
+ Location::start_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
+ Location::end_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1));
}
Locations::~Locations ()