Templates: aesthetic tweaks.
This commit is contained in:
parent
0f00b1a28e
commit
f614d10994
@ -562,23 +562,14 @@ SessionDialog::populate_session_templates ()
|
|||||||
template_model->clear ();
|
template_model->clear ();
|
||||||
|
|
||||||
//Add any Lua scripts (factory templates) found in the scripts folder
|
//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));
|
LuaScriptList& as (LuaScripting::instance ().scripts (LuaScriptInfo::EditorAction));
|
||||||
for (LuaScriptList::const_iterator s = as.begin(); s != as.end(); ++s) {
|
for (LuaScriptList::const_iterator s = as.begin(); s != as.end(); ++s) {
|
||||||
if (!((*s)->subtype & LuaScriptInfo::SessionSetup)) {
|
if (!((*s)->subtype & LuaScriptInfo::SessionSetup)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
TreeModel::Row row = *(template_model->append ());
|
TreeModel::Row row;
|
||||||
row[session_template_columns.name] = "Meta: " + (*s)->name;
|
row = *(template_model->append ());
|
||||||
|
row[session_template_columns.name] = (*s)->name;
|
||||||
row[session_template_columns.path] = "urn:ardour:" + (*s)->path;
|
row[session_template_columns.path] = "urn:ardour:" + (*s)->path;
|
||||||
row[session_template_columns.description] = (*s)->description;
|
row[session_template_columns.description] = (*s)->description;
|
||||||
row[session_template_columns.created_with_short] = _("{Factory Template}");
|
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.name] = (_("Empty Template"));
|
||||||
row[session_template_columns.path] = string();
|
row[session_template_columns.path] = string();
|
||||||
row[session_template_columns.description] = _("An empty session with factory default settings.");
|
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_short] = _("");
|
||||||
row[session_template_columns.created_with_long] = _("{Factory Template}");
|
row[session_template_columns.created_with_long] = _("");
|
||||||
|
|
||||||
//auto-select the first item in the list
|
//auto-select the first item in the list
|
||||||
Gtk::TreeModel::Row first = template_model->children()[0];
|
Gtk::TreeModel::Row first = template_model->children()[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user