summaryrefslogtreecommitdiff
path: root/gtk2_ardour/crossfade_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-06-28 02:40:09 +0000
committerCarl Hetherington <carl@carlh.net>2010-06-28 02:40:09 +0000
commited19559ece9c2420a2d590f1e9c3c6c9c62e90ab (patch)
tree397f797024fa4cd6dfa24e7242dd5c13878643a2 /gtk2_ardour/crossfade_view.cc
parentc8e07653daab1b8d5e77aada9ed9a351907c71f1 (diff)
Generate undo record for crossfade edits, and provide signalling to update the view when such things are undone. Partially fixes #3257.
git-svn-id: svn://localhost/ardour2/branches/3.0@7309 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/crossfade_view.cc')
-rw-r--r--gtk2_ardour/crossfade_view.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/crossfade_view.cc b/gtk2_ardour/crossfade_view.cc
index 4743c87ce4..f77f8db442 100644
--- a/gtk2_ardour/crossfade_view.cc
+++ b/gtk2_ardour/crossfade_view.cc
@@ -84,6 +84,7 @@ CrossfadeView::CrossfadeView (ArdourCanvas::Group *parent,
crossfade_changed (all_crossfade_properties);
crossfade->PropertyChanged.connect (*this, invalidator (*this), ui_bind (&CrossfadeView::crossfade_changed, this, _1), gui_context());
+ crossfade->FadesChanged.connect (*this, invalidator (*this), ui_bind (&CrossfadeView::crossfade_fades_changed, this), gui_context());
ColorsChanged.connect (sigc::mem_fun (*this, &CrossfadeView::color_handler));
}
@@ -261,3 +262,9 @@ CrossfadeView::fake_hide ()
{
group->hide();
}
+
+void
+CrossfadeView::crossfade_fades_changed ()
+{
+ redraw_curves ();
+}