13
0

Templates: aesthetic tweaks.

This commit is contained in:
Ben Loftis 2017-08-18 08:37:09 -05:00
parent 0f00b1a28e
commit f614d10994

View File

@ -562,23 +562,14 @@ SessionDialog::populate_session_templates ()
template_model->clear ();
//Add any Lua scripts (factory templates) found in the scripts folder
LuaScriptList& ms (LuaScripting::instance ().scripts (LuaScriptInfo::SessionInit));
for (LuaScriptList::const_iterator s = ms.begin(); s != ms.end(); ++s) {
TreeModel::Row row = *(template_model->append ());
row[session_template_columns.name] = "Meta: " + (*s)->name;
row[session_template_columns.path] = "urn:ardour:" + (*s)->path;
row[session_template_columns.description] = (*s)->description;
row[session_template_columns.created_with_short] = _("{Factory Template}");
row[session_template_columns.created_with_long] = _("{Factory Template}");
}
LuaScriptList& as (LuaScripting::instance ().scripts (LuaScriptInfo::EditorAction));
for (LuaScriptList::const_iterator s = as.begin(); s != as.end(); ++s) {
if (!((*s)->subtype & LuaScriptInfo::SessionSetup)) {
continue;
}
TreeModel::Row row = *(template_model->append ());
row[session_template_columns.name] = "Meta: " + (*s)->name;
TreeModel::Row row;
row = *(template_model->append ());
row[session_template_columns.name] = (*s)->name;
row[session_template_columns.path] = "urn:ardour:" + (*s)->path;
row[session_template_columns.description] = (*s)->description;
row[session_template_columns.created_with_short] = _("{Factory Template}");
@ -604,8 +595,8 @@ SessionDialog::populate_session_templates ()
row[session_template_columns.name] = (_("Empty Template"));
row[session_template_columns.path] = string();
row[session_template_columns.description] = _("An empty session with factory default settings.");
row[session_template_columns.created_with_short] = _("{Factory Template}");
row[session_template_columns.created_with_long] = _("{Factory Template}");
row[session_template_columns.created_with_short] = _("");
row[session_template_columns.created_with_long] = _("");
//auto-select the first item in the list
Gtk::TreeModel::Row first = template_model->children()[0];