diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-08 02:35:35 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-08 02:35:35 +0000 |
commit | 150d3fdfbfeabde96d528312aa22e839a5aa5f3e (patch) | |
tree | af137578c215731e6991a619409787560858fdec /gtk2_ardour/editor_summary.cc | |
parent | 41264273ec2a88599263c2506f7b886813472380 (diff) |
Watch for route colour changes and update the summary accordingly. Fixes #3692.
git-svn-id: svn://localhost/ardour2/branches/3.0@8480 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r-- | gtk2_ardour/editor_summary.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index cd4356eb75..e279da94d3 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -29,6 +29,7 @@ #include "editor_routes.h" #include "editor_cursors.h" #include "mouse_cursors.h" +#include "route_time_axis.h" using namespace std; using namespace ARDOUR; @@ -792,3 +793,22 @@ EditorSummary::editor_y_to_summary (double y) const return sy; } + +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) { + (*i)->route()->gui_changed.connect (*this, invalidator (*this), ui_bind (&EditorSummary::route_gui_changed, this, _1), gui_context ()); + } + + set_dirty (); +} + +void +EditorSummary::route_gui_changed (string c) +{ + if (c == "color") { + set_dirty (); + } +} |