diff options
author | Carl Hetherington <carl@carlh.net> | 2010-10-28 20:01:26 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-10-28 20:01:26 +0000 |
commit | db5c8c9791bc42611e3150d6f8861300b32a1cbf (patch) | |
tree | 4fde6c91f85f8a2bcf1b12093884db6b51e6c592 /gtk2_ardour/region_editor.cc | |
parent | e88f7f6b55142860155e06b5d92c6693414816e7 (diff) |
Add region peak amplitude to region editor.
git-svn-id: svn://localhost/ardour2/branches/3.0@7937 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_editor.cc')
-rwxr-xr-x | gtk2_ardour/region_editor.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/region_editor.cc b/gtk2_ardour/region_editor.cc index 0d3f89dfad..708c789dd0 100755 --- a/gtk2_ardour/region_editor.cc +++ b/gtk2_ardour/region_editor.cc @@ -44,7 +44,7 @@ using namespace Gtkmm2ext; RegionEditor::RegionEditor (Session* s, boost::shared_ptr<Region> r) : ArdourDialog (_("Region")), - _table (8, 2), + _table (9, 2), _table_row (0), _region (r), name_label (_("Name:")), @@ -88,7 +88,12 @@ RegionEditor::RegionEditor (Session* s, boost::shared_ptr<Region> r) start_label.set_name ("RegionEditorLabel"); start_label.set_text (_("File start:")); _sources_label.set_name ("RegionEditorLabel"); - _sources_label.set_text (_("Sources:")); + + if (region->n_channels() > 1) { + _sources_label.set_text (_("Sources:")); + } else { + _sources_label.set_text (_("Source:")); + } _table.set_col_spacings (12); _table.set_row_spacings (6); @@ -139,7 +144,7 @@ RegionEditor::RegionEditor (Session* s, boost::shared_ptr<Region> r) _table.attach (_sources_label, 0, 1, _table_row, _table_row + 1, Gtk::FILL, Gtk::FILL); _table.attach (_sources, 1, 2, _table_row, _table_row + 1, Gtk::FILL, Gtk::FILL); ++_table_row; - + get_vbox()->pack_start (_table, true, true); add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_ACCEPT); |