summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-19 16:05:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-19 16:05:06 +0000
commitfe980b5c995648c73ecbe1b4b9a71595c6a3327b (patch)
treed91a367b5e0c9799ec6e408674ea8cc0a550d061 /gtk2_ardour
parentf4f0dd6637878ba0597157ed8ec4550dcdb2a273 (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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/midi_time_axis.cc8
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();