Make track context colour menu apply to all selected tracks.

git-svn-id: svn://localhost/ardour2/branches/3.0@8934 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-02-23 01:03:51 +00:00
parent 1b8a919f57
commit f9e3a8b59f
4 changed files with 18 additions and 6 deletions

View file

@ -1257,17 +1257,20 @@ RouteUI::toggle_solo_safe (Gtk::CheckMenuItem* check)
_route->set_solo_safe (check->get_active(), this);
}
bool
/** Ask the user to choose a colour, and then set all selected tracks
* to that colour.
*/
void
RouteUI::choose_color ()
{
bool picked;
Gdk::Color const color = Gtkmm2ext::UI::instance()->get_color (_("Color Selection"), picked, &_color);
if (picked) {
set_color (color);
ARDOUR_UI::instance()->the_editor().get_selection().tracks.foreach_route_ui (
boost::bind (&RouteUI::set_color, _1, color)
);
}
return picked;
}
void