diff --git a/gtk2_ardour/foldback_strip.cc b/gtk2_ardour/foldback_strip.cc index 5825984434..8b22d8d120 100644 --- a/gtk2_ardour/foldback_strip.cc +++ b/gtk2_ardour/foldback_strip.cc @@ -16,35 +16,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include -#include - -#include - -#include - -#include "pbd/convert.h" -#include "pbd/enumwriter.h" -#include "pbd/replace_all.h" -#include "pbd/stacktrace.h" - -#include "ardour/amp.h" #include "ardour/audioengine.h" -#include "ardour/internal_send.h" -#include "ardour/internal_return.h" -#include "ardour/io.h" -#include "ardour/io_processor.h" #include "ardour/pannable.h" -#include "ardour/panner.h" #include "ardour/panner_shell.h" #include "ardour/panner_manager.h" -#include "ardour/port.h" #include "ardour/profile.h" #include "ardour/route.h" #include "ardour/send.h" #include "ardour/session.h" -#include "ardour/types.h" #include "ardour/user_bundle.h" #include "ardour/value_as_string.h" @@ -234,7 +213,7 @@ FoldbackStrip::FoldbackStrip (Mixer_UI& mx, Session* sess, boost::shared_ptrset_name ("monitor section knob"); fb_level_control->set_no_show_all (true); - bottom_button_table.attach (*fb_level_control, 0, 1, 0, 1,FILL,FILL,20,20); //EXPAND - bottom_button_table.set_spacings (20); - bottom_button_table.set_row_spacings (20); - bottom_button_table.set_homogeneous (true); + level_table.attach (*fb_level_control, 0, 1, 0, 1,FILL,FILL,20,20); //EXPAND + level_table.set_spacings (20); + level_table.set_row_spacings (20); + level_table.set_homogeneous (true); mute_solo_table.set_homogeneous (true); mute_solo_table.set_spacings (2); @@ -334,9 +313,9 @@ FoldbackStrip::init () #endif global_vpacker.pack_end (_comment_button, Gtk::PACK_SHRINK); global_vpacker.pack_end (output_button, Gtk::PACK_SHRINK); - global_vpacker.pack_end (*insert_box, Gtk::PACK_SHRINK); - global_vpacker.pack_end (bottom_button_table, Gtk::PACK_SHRINK); global_vpacker.pack_end (mute_solo_table, Gtk::PACK_SHRINK); + global_vpacker.pack_end (level_table, Gtk::PACK_SHRINK); + global_vpacker.pack_end (*insert_box, Gtk::PACK_SHRINK); global_vpacker.pack_end (panners, Gtk::PACK_SHRINK); global_frame.add (global_vpacker); @@ -503,7 +482,7 @@ FoldbackStrip::set_route (boost::shared_ptr rt) global_frame.show(); global_vpacker.show(); mute_solo_table.show(); - bottom_button_table.show(); + level_table.show(); show_sends_box.show_all(); send_display.show (); output_button.show(); @@ -1238,15 +1217,14 @@ FoldbackStrip::list_fb_routes () void FoldbackStrip::set_selected (bool yn) { - //AxisView::set_selected (yn); - if (selected()) { + /*if (selected()) { global_frame.set_shadow_type (Gtk::SHADOW_ETCHED_OUT); global_frame.set_name ("MixerStripSelectedFrame"); - } else { + } else {*/ global_frame.set_shadow_type (Gtk::SHADOW_IN); global_frame.set_name ("MixerStripFrame"); - } + //} global_frame.queue_draw (); diff --git a/gtk2_ardour/foldback_strip.h b/gtk2_ardour/foldback_strip.h index 6ed4e815fb..55d671a1cc 100644 --- a/gtk2_ardour/foldback_strip.h +++ b/gtk2_ardour/foldback_strip.h @@ -186,7 +186,7 @@ private: PannerUI panners; Gtk::Table mute_solo_table; - Gtk::Table bottom_button_table; + Gtk::Table level_table; ArdourWidgets::ArdourButton output_button; diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 12189f3977..c0deb3aaeb 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -823,7 +823,7 @@ LuaInstance::register_classes (lua_State* L) .endClass () // std::list - .beginConstStdCPtrList ("SelectionList") + .beginStdCPtrList ("SelectionList") .endClass () // std::list diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 22e69d3455..f8a96fd78c 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -591,6 +591,11 @@ Mixer_UI::add_stripables (StripableList& slist) if (route->is_monitor()) { out_packer.pack_end (_monitor_section.tearoff(), false, false); + if (foldback_strip) { + out_packer.remove (*foldback_strip); + out_packer.pack_end (*foldback_strip, false, false); + foldback_strip->set_packed (true); + } _monitor_section.set_session (_session); _monitor_section.tearoff().show_all (); @@ -618,7 +623,6 @@ Mixer_UI::add_stripables (StripableList& slist) foldback_strip->set_packed (true); } continue; - } strip = new MixerStrip (*this, _session, route);