summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-05 02:00:43 +0000
committerDavid Robillard <d@drobilla.net>2008-10-05 02:00:43 +0000
commitf3252f65856d5684ffc89758425bd5fd2209d650 (patch)
treea883455e63d4886de16c6cc690e8ecad8dc10b29 /gtk2_ardour/midi_time_axis.cc
parent47638b66441b1ce8aebbed4f702600cc39cc302b (diff)
Commit the colours I thought I was committing the last time.
git-svn-id: svn://localhost/ardour2/branches/3.0@3861 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index bc036be991..53480f3ba5 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -139,11 +139,11 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess, boost::shar
// add channel selector expander
HBox *channel_selector_box = manage(new HBox());
- channel_selector_box->pack_start(_channel_selector, SHRINK, 0);
+ channel_selector_box->pack_start(_channel_selector, false, false);
_midi_expander.add(*channel_selector_box);
_midi_expander.property_expanded().signal_changed().connect(
mem_fun(this, &MidiTimeAxisView::channel_selector_toggled));
- controls_vbox.pack_end(_midi_expander, SHRINK, 0);
+ controls_vbox.pack_end(_midi_expander, false, false);
boost::shared_ptr<MidiDiskstream> diskstream = midi_track()->midi_diskstream();
// restore channel selector settings
@@ -194,6 +194,9 @@ MidiTimeAxisView::set_height (uint32_t h)
{
RouteTimeAxisView::set_height (h);
+ static const int EXPANDER_MIN_HEIGHT = 100;
+ static const int KEYBOARD_MIN_HEIGHT = 250;
+
if (height >= hLarger) {
_midi_expander.show();
if (is_track() && _range_scroomer)