summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-23 01:03:51 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-23 01:03:51 +0000
commitf9e3a8b59fe3af25665d257601874166c8f722d6 (patch)
treec17b8717ad491a53cacd6d76ab5e7ee9e233b105 /gtk2_ardour/route_ui.cc
parent1b8a919f572166fdd4746e8e06b067f8debb9466 (diff)
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
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 209210b8ac..4600f04f14 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -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