summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-31 21:56:39 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-31 21:56:39 +0000
commit40a8ed88084eb36922dbdc530db75a323843863a (patch)
tree0322932e9a302a70dd7b50d4f845162a423a8140 /gtk2_ardour/editor_summary.cc
parent0a720e575378399e8b397a8b54b994d288b49419 (diff)
Update summary on switching playlists (#4659).
git-svn-id: svn://localhost/ardour2/branches/3.0@11405 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r--gtk2_ardour/editor_summary.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc
index 57a08caf88..623faaed5f 100644
--- a/gtk2_ardour/editor_summary.cc
+++ b/gtk2_ardour/editor_summary.cc
@@ -75,8 +75,8 @@ EditorSummary::set_session (Session* s)
*/
if (_session) {
- _session->StartTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&EditorSummary::set_dirty, this), gui_context());
- _session->EndTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&EditorSummary::set_dirty, this), gui_context());
+ _session->StartTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&CairoWidget::set_dirty, this), gui_context());
+ _session->EndTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&CairoWidget::set_dirty, this), gui_context());
}
}
@@ -926,9 +926,13 @@ EditorSummary::editor_y_to_summary (double y) const
void
EditorSummary::routes_added (list<RouteTimeAxisView*> const & r)
{
- /* Connect to gui_changed() on the routes so that we know when their colour has changed */
for (list<RouteTimeAxisView*>::const_iterator i = r.begin(); i != r.end(); ++i) {
+ /* Connect to gui_changed() on the route so that we know when their colour has changed */
(*i)->route()->gui_changed.connect (*this, invalidator (*this), ui_bind (&EditorSummary::route_gui_changed, this, _1), gui_context ());
+ boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> ((*i)->route ());
+ if (tr) {
+ tr->PlaylistChanged.connect (*this, invalidator (*this), ui_bind (&CairoWidget::set_dirty, this), gui_context ());
+ }
}
set_dirty ();