summaryrefslogtreecommitdiff
path: root/gtk2_ardour/control_point.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-22 14:03:07 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-22 14:03:07 +0000
commita4434809e147d7f091fd488d047c531ff4c344c9 (patch)
tree2ffc14ef55a0ca310b4f772bcb87d662084a752c /gtk2_ardour/control_point.cc
parent82c867bf2a6f4de102707b812a87d68e3bd6e170 (diff)
Use a list of ControlPoints to hold the automation selection,
rather than a time range. This makes more sense now that we display every point on an automation line, rather than just a subset. Makes the code a fair bit simpler, and should fix some unexpected behaviours, especially when cutting automation points. git-svn-id: svn://localhost/ardour2/branches/3.0@12054 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/control_point.cc')
-rw-r--r--gtk2_ardour/control_point.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/control_point.cc b/gtk2_ardour/control_point.cc
index bc7301dc1c..d869e094aa 100644
--- a/gtk2_ardour/control_point.cc
+++ b/gtk2_ardour/control_point.cc
@@ -30,6 +30,8 @@ using namespace ARDOUR;
using namespace PBD;
using namespace Gnome; // for Canvas
+PBD::Signal1<void, ControlPoint *> ControlPoint::CatchDeletion;
+
ControlPoint::ControlPoint (AutomationLine& al)
: _line (al)
{
@@ -82,6 +84,8 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force
ControlPoint::~ControlPoint ()
{
+ CatchDeletion (this); /* EMIT SIGNAL */
+
delete _item;
}