diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-06 01:07:28 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-06 01:07:28 +0000 |
commit | 75fca54e6141fd81bfcfb2164319333b32bef519 (patch) | |
tree | 13bcaad571b6ab9cb799e5fd1b96e023b7bf25fd /gtk2_ardour/processor_box.cc | |
parent | 61bb7c5852df332a97d9752a507feb590bb3f12d (diff) |
Make processor box frames configurable colour-wise.
git-svn-id: svn://localhost/ardour2/branches/3.0@8459 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 45cf5d7660..482ef68d25 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -103,8 +103,6 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w) _vbox.pack_start (_hbox); _frame.add (_vbox); - _frame.set_name ("ProcessorFrame"); - _name.set_alignment (0, 0.5); _name.set_text (name ()); _name.set_padding (2, 2); @@ -112,6 +110,7 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w) if (boost::dynamic_pointer_cast<Amp> (p)) { /* Fader processor gets a special look */ _event_box.set_name ("ProcessorFader"); + _frame.set_name ("ProcessorFaderFrame"); _name.set_padding (2, 4); } @@ -1092,6 +1091,10 @@ ProcessorBox::reordered () void ProcessorBox::setup_entry_widget_names () { + /* It just so happens that the action_widget() is the event box (which gives the background + * colour) and the widget() is the frame, more by good luck than good judgement. + */ + list<ProcessorEntry*> children = processor_display.children (); bool pre_fader = true; for (list<ProcessorEntry*>::iterator i = children.begin(); i != children.end(); ++i) { @@ -1100,8 +1103,10 @@ ProcessorBox::setup_entry_widget_names () } else { if (pre_fader) { (*i)->action_widget().set_name ("ProcessorPreFader"); + (*i)->widget().set_name ("ProcessorPreFaderFrame"); } else { (*i)->action_widget().set_name ("ProcessorPostFader"); + (*i)->widget().set_name ("ProcessorPostFaderFrame"); } } } |