From f614d10994df1e8923c70311ebc9da17a79b8b8b Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 18 Aug 2017 08:37:09 -0500 Subject: [PATCH] Templates: aesthetic tweaks. --- gtk2_ardour/session_dialog.cc | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index a41078c49a..d6c17e09ac 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -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];