diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-13 20:58:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-13 20:58:12 +0000 |
commit | da6f9ab807d938ec91c78cd7661fbfdfe9aaee73 (patch) | |
tree | 462bbd11b79f452691992f541694c66d7d18d6f2 | |
parent | c785552d8f071e10227453667a9b488dd5b46d25 (diff) |
Scale the piano roll right with stacked tracks, as well.
git-svn-id: svn://localhost/ardour2/branches/3.0@12713 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index f0a9a8b2d4..b83f865ce0 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -172,14 +172,17 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) _range_scroomer->DragStarting.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::suspend_updates)); _range_scroomer->DragFinishing.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::resume_updates)); - /* Put the scroomer in a VBox with a padding label so that it can be reduced in height - for stacked-view tracks. + /* Put the scroomer and the keyboard in a VBox with a padding + label so that they can be reduced in height for stacked-view + tracks. */ - VBox* b = manage (new VBox); - b->pack_start (*_range_scroomer, false, false); - b->pack_start (*manage (new Label ("")), true, true); - controls_hbox.pack_start(*b); - controls_hbox.pack_start(*_piano_roll_header); + VBox* v = manage (new VBox); + HBox* h = manage (new HBox); + h->pack_start (*_range_scroomer); + h->pack_start (*_piano_roll_header); + v->pack_start (*h, false, false); + v->pack_start (*manage (new Label ("")), true, true); + controls_hbox.pack_start(*v); controls_ebox.set_name ("MidiTrackControlsBaseUnselected"); controls_base_selected_name = "MidiTrackControlsBaseSelected"; |