diff options
author | David Robillard <d@drobilla.net> | 2015-03-13 21:54:57 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-13 22:09:13 -0400 |
commit | 51f4e33dd105ace7035ace239abed78a86919020 (patch) | |
tree | 56bd8777e1e132dc1cec97b1e231b15c9525c951 /gtk2_ardour | |
parent | 524f3222500466094aac17b58c4b8c702ff61c69 (diff) |
Don't expand track headers to show MIDI stuff.
Fixes bug #0006138. This solution does make the other label move when settings
are changed (presumably what the fixed width stuff was for), but I don't think
this is a big deal. Lesser of two evils, at least.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 6987680f26..304593227c 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -315,14 +315,11 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) channel_selector_button->set_name ("route button"); ARDOUR_UI::instance()->set_tip (channel_selector_button, _("Click to edit channel settings")); - /* fixed sized labels to prevent silly nonsense (though obviously, - * they cause their own too) - */ - set_size_request_to_display_given_text(_playback_channel_status, "Play: somemo", 2, 2); // TODO use _("Play: all/some") - set_size_request_to_display_given_text(_capture_channel_status, "Rec: somemo", 2, 2); // TODO use _("Rec: all/some") - - _channel_status_box.pack_start (_playback_channel_status, false, false); - _channel_status_box.pack_start (_capture_channel_status, false, false); + // Insert expanding space labels to get full width justification + _channel_status_box.pack_start (_playback_channel_status, false, false, 2); + _channel_status_box.pack_start (*Gtk::manage(new Gtk::Label(" ")), true, true); + _channel_status_box.pack_start (_capture_channel_status, false, false, 2); + _channel_status_box.pack_start (*Gtk::manage(new Gtk::Label(" ")), true, true); _channel_status_box.pack_end (*channel_selector_button, false, false); _channel_status_box.show_all (); |