mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
SessionDialog: Add "label" and mnemonic for "New" template list
The "New" page moves focus to "Session name", and there was no easy way to get the template list at the top of the page. Fix that by showing the header line (even though the table only has one column in Ardour) and put a mnemonic on "Template". Headers are already shown by default and there is no need to enable them explicitly - just don't hide them.
This commit is contained in:
parent
4ec0d0453c
commit
880303044f
1 changed files with 1 additions and 4 deletions
|
|
@ -769,12 +769,9 @@ SessionDialog::setup_new_session_page ()
|
|||
//template_chooser is the treeview showing available templates
|
||||
template_model = TreeStore::create (session_template_columns);
|
||||
template_chooser.set_model (template_model);
|
||||
template_chooser.append_column (_("Template"), session_template_columns.name);
|
||||
template_chooser.append_column (_("_Template"), session_template_columns.name); // single column header has value as mnemonic
|
||||
#ifdef MIXBUS
|
||||
template_chooser.append_column (_("Modified With"), session_template_columns.modified_with_short);
|
||||
template_chooser.set_headers_visible (true);
|
||||
#else
|
||||
template_chooser.set_headers_visible (false); //there is only one column and its purpose should be obvious
|
||||
#endif
|
||||
template_chooser.get_selection()->set_mode (SELECTION_SINGLE);
|
||||
template_chooser.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &SessionDialog::template_row_selected));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue