From 5cdaa5f93512650385d2e161d2442a0ce40416d4 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 14 Jul 2020 09:57:53 -0500 Subject: [PATCH] Source list: some tweaks to match Region list --- gtk2_ardour/editor_sources.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index ad87b25700..3f2f4643ea 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -156,7 +156,7 @@ EditorSources::EditorSources (Editor* e) ColumnInfo ci[] = { { 0, _("Name"), _("Region name") }, - { 1, _("Chans"), _("Channels") }, + { 1, _("# Ch"), _("# Channels") }, { 2, _("Captured For"), _("Original Track this was recorded on") }, { 3, _("Tags"), _("Tags") }, { 4, _("Take ID"), _("Take ID") }, @@ -182,6 +182,11 @@ EditorSources::EditorSources (Editor* e) _display.set_headers_visible (true); _display.set_rules_hint (); + if (UIConfiguration::instance ().get_use_tooltips ()) { + /* show path as the row tooltip */ + _display.set_tooltip_column (6); /* path */ + } + /* set the color of the name field */ TreeViewColumn* tv_col = _display.get_column(0); CellRendererText* renderer = dynamic_cast(_display.get_column_cell_renderer (0)); @@ -387,8 +392,12 @@ EditorSources::populate_row (TreeModel::Row row, boost::shared_ptrname(); /* N CHANNELS */ - row[_columns.channels] = region->n_channels(); - + if (region->data_type() == DataType::MIDI) { + row[_columns.channels] = 0; /*TODO: some better recognition of midi regions*/ + } else { + row[_columns.channels] = region->n_channels(); + } + /* CAPTURED FOR */ row[_columns.captd_for] = source->captured_for();