diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 17:16:20 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 17:16:20 -0400 |
commit | 3e12d4b4a625e7c02b797e806c1de501a33ade2d (patch) | |
tree | 81e57b4986ca8d52fc4f79346faa0a0466759c9a /gtk2_ardour/route_ui.cc | |
parent | 91ad3ef81d94d4108c971b8c9f7a226293d57cfc (diff) |
use PresentationInfo color to set route colors. GUI appears to respond as expected
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index e10926d00f..c6a1677cc0 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -285,9 +285,9 @@ RouteUI::set_route (boost::shared_ptr<Route> rp) _route->PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::route_property_changed, this, _1), gui_context()); + _route->presentation_info().PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::route_gui_changed, this, _1), gui_context ()); _route->io_changed.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::setup_invert_buttons, this), gui_context ()); - _route->gui_changed.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::route_gui_changed, this, _1), gui_context ()); if (_session->writable() && is_track()) { boost::shared_ptr<Track> t = boost::dynamic_pointer_cast<Track>(_route); @@ -1612,8 +1612,8 @@ RouteUI::choose_color () void RouteUI::set_color (uint32_t c) { + cerr << "setting route color\n"; _route->presentation_info().set_color (c); - _route->gui_changed ("color", (void *) 0); /* EMIT_SIGNAL */ } /** @return GUI state ID for things that are common to the route in all its representations */ @@ -2165,9 +2165,9 @@ RouteUI::request_redraw () /** The Route's gui_changed signal has been emitted */ void -RouteUI::route_gui_changed (string what_changed) +RouteUI::route_gui_changed (PropertyChange const& what_changed) { - if (what_changed == "color") { + if (what_changed.contains (Properties::color)) { if (set_color_from_route () == 0) { route_color_changed (); } |