summaryrefslogtreecommitdiff
path: root/gtk2_ardour/stripable_colorpicker.cc
diff options
context:
space:
mode:
authorNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-04-03 15:38:54 -0500
committerNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-06-01 09:55:25 -0500
commit112a1ab1c42ffce4822dbb1bbe4c26c95dbce63d (patch)
tree426978e57da05e8872032ccd7939e47280d98e8f /gtk2_ardour/stripable_colorpicker.cc
parent37fe6b8ba1f0714d362f337b2fd3a63739d41fc1 (diff)
add Gtk::ColorButton widget to LuaDialog and add ability to change multiple route colors at a time
Diffstat (limited to 'gtk2_ardour/stripable_colorpicker.cc')
-rw-r--r--gtk2_ardour/stripable_colorpicker.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/stripable_colorpicker.cc b/gtk2_ardour/stripable_colorpicker.cc
index 4e8fe339d4..66602a9f67 100644
--- a/gtk2_ardour/stripable_colorpicker.cc
+++ b/gtk2_ardour/stripable_colorpicker.cc
@@ -19,6 +19,7 @@
#include "pbd/compose.h"
#include "pbd/i18n.h"
+#include "public_editor.h"
#include "stripable_colorpicker.h"
#include "ui_config.h"
#include "utils.h"
@@ -142,10 +143,15 @@ StripableColorDialog::popup (boost::shared_ptr<ARDOUR::Stripable> s)
void
StripableColorDialog::finish_color_edit (int response)
{
+ ARDOUR::RouteList rl = PublicEditor::instance().get_selection().tracks.routelist();
+
if (response == RESPONSE_OK) {
ColorChanged (gdk_color_to_rgba (get_colorsel()->get_current_color())); /* EMIT SIGNAL */
}
if (_stripable && response == RESPONSE_OK) {
+ for (ARDOUR::RouteList::iterator i = rl.begin(); i != rl.end(); ++i) {
+ (*i)->presentation_info().set_color (gdk_color_to_rgba (get_colorsel()->get_current_color()));
+ }
_stripable->presentation_info().set_color (gdk_color_to_rgba (get_colorsel()->get_current_color()));
} else if (_stripable) {
_stripable->presentation_info().set_color (_initial_color);