summaryrefslogtreecommitdiff
path: root/gtk2_ardour/group_tabs.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-08-31 19:14:12 +0000
committerCarl Hetherington <carl@carlh.net>2011-08-31 19:14:12 +0000
commit881b5a43e755860e91bf596bcac1f8c105b0a843 (patch)
treeea8c1ee2acca440144caa74dc5f6698449278dd8 /gtk2_ardour/group_tabs.cc
parentf3a6b8a9bae2c926dd37315793416f14c176bbd8 (diff)
Allow route groups to color their tracks (remainder of
#4064). git-svn-id: svn://localhost/ardour2/branches/3.0@10043 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/group_tabs.cc')
-rw-r--r--gtk2_ardour/group_tabs.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc
index ec80bc4291..2e35d84809 100644
--- a/gtk2_ardour/group_tabs.cc
+++ b/gtk2_ardour/group_tabs.cc
@@ -517,6 +517,15 @@ GroupTabs::set_group_color (RouteGroup* group, Gdk::Color color)
char buf[64];
snprintf (buf, sizeof (buf), "%d:%d:%d", color.get_red(), color.get_green(), color.get_blue());
gui_state.set (group_gui_id (group), "color", buf);
+
+ /* This is a bit of a hack, but this might change
+ our route's effective color, so emit gui_changed
+ for our routes.
+ */
+
+ for (RouteList::iterator i = group->route_list()->begin(); i != group->route_list()->end(); ++i) {
+ (*i)->gui_changed (X_("color"), 0);
+ }
}
/** @return the ID string to use for the GUI state of a route group */