diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-19 16:05:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-19 16:05:06 +0000 |
commit | fe980b5c995648c73ecbe1b4b9a71595c6a3327b (patch) | |
tree | d91a367b5e0c9799ec6e408674ea8cc0a550d061 | |
parent | f4f0dd6637878ba0597157ed8ec4550dcdb2a273 (diff) |
fix MIDI track channel selector etc. visibility after show_all()=>show() changes in recent commit
git-svn-id: svn://localhost/ardour2/branches/3.0@13899 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index ce073c6468..54f883ac19 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -234,22 +234,28 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) _midi_controls_box.set_homogeneous(false); _midi_controls_box.set_border_width (10); + if (!patch_manager.all_models().empty()) { _channel_selector.set_border_width(2); + _channel_selector.show_all (); + _midi_controls_box.resize(3, 2); _midi_controls_box.attach(_channel_selector, 0, 2, 0, 1); - + _midi_controls_box.attach(*manage(new HSeparator()), 0, 2, 1, 2); _midnam_model_selector.set_size_request(22, 30); _midnam_model_selector.set_border_width(2); + _midnam_model_selector.show (); _midi_controls_box.attach(_midnam_model_selector, 0, 1, 2, 3); _midnam_custom_device_mode_selector.set_size_request(10, 30); _midnam_custom_device_mode_selector.set_border_width(2); + _midnam_custom_device_mode_selector.show (); _midi_controls_box.attach(_midnam_custom_device_mode_selector, 0, 1, 3, 4); } else { _midi_controls_box.attach(_channel_selector, 0, 1, 0, 1); + _channel_selector.show_all (); } model_changed(); |