summaryrefslogtreecommitdiff
path: root/gtk2_ardour/script_selector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-23 23:44:35 +0100
committerRobin Gareus <robin@gareus.org>2016-03-23 23:44:35 +0100
commitdafdf87b79293c212f4f52ae5faa44d11cb09e5e (patch)
treeaaf4e03b8671c3def40521aa42ee089dcaf7824d /gtk2_ardour/script_selector.cc
parentb7754af246dd5446828217a636d8a24e751e41d1 (diff)
towards a proper lua script console UI
Diffstat (limited to 'gtk2_ardour/script_selector.cc')
-rw-r--r--gtk2_ardour/script_selector.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/script_selector.cc b/gtk2_ardour/script_selector.cc
index a8a1b6e957..3fab40a5e7 100644
--- a/gtk2_ardour/script_selector.cc
+++ b/gtk2_ardour/script_selector.cc
@@ -112,6 +112,7 @@ ScriptSelector::script_combo_changed ()
void
ScriptSelector::refresh ()
{
+ LuaScripting::instance ().refresh ();
_scripts = LuaScripting::instance ().scripts (_script_type);
setup_list ();
}
@@ -166,10 +167,12 @@ ScriptParameterDialog::ScriptParameterDialog (std::string title,
t->attach (_name_entry, 1, 2, ty, ty+1);
++ty;
- l = manage (new Label (_("<b>Parameters:</b>"), Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER, false));
- l->set_use_markup ();
- t->attach (_name_entry, 0, 2, ty, ty+1);
- ++ty;
+ if (_lsp.size () > 0) {
+ l = manage (new Label (_("<b>Instance Parameters</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
+ l->set_use_markup ();
+ t->attach (*l, 0, 2, ty, ty+1);
+ ++ty;
+ }
for (size_t i = 0; i < _lsp.size (); ++i) {
CheckButton* c = manage (new CheckButton (_lsp[i]->title));