projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c49d6fd
)
add a convenient script header
author
Robin Gareus
<robin@gareus.org>
Fri, 25 Mar 2016 18:58:56 +0000
(19:58 +0100)
committer
Robin Gareus
<robin@gareus.org>
Fri, 25 Mar 2016 19:00:56 +0000
(20:00 +0100)
gtk2_ardour/luawindow.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/luawindow.cc
b/gtk2_ardour/luawindow.cc
index c6f003171287577ba1b80c1e7c9ff9cfd50babf3..15c7fb69a650eb4b87e0a7994dd26f99db04aa05 100644
(file)
--- a/
gtk2_ardour/luawindow.cc
+++ b/
gtk2_ardour/luawindow.cc
@@
-475,6
+475,9
@@
LuaWindow::setup_buffers ()
script_buffers.push_back (ScriptBufferPtr (new LuaWindow::ScriptBuffer("#1")));
_current_buffer = script_buffers.front();
script_buffers.push_back (ScriptBufferPtr (new LuaWindow::ScriptBuffer("#1")));
_current_buffer = script_buffers.front();
+ Glib::RefPtr<Gtk::TextBuffer> tb (entry.get_buffer());
+ tb->set_text (_current_buffer->script);
+
refresh_scriptlist ();
update_gui_state ();
}
refresh_scriptlist ();
update_gui_state ();
}
@@
-618,6
+621,9
@@
LuaWindow::ScriptBuffer::ScriptBuffer (const std::string& n)
: name (n)
, flags (Buffer_Scratch | Buffer_Valid)
{
: name (n)
, flags (Buffer_Scratch | Buffer_Valid)
{
+ script =
+ "-- ardour { [\"type\"] = \"Snippet\", name = \"\" }\n"
+ "-- function factory () return function () -- -- end end\n";
}
LuaWindow::ScriptBuffer::ScriptBuffer (LuaScriptInfoPtr p)
}
LuaWindow::ScriptBuffer::ScriptBuffer (LuaScriptInfoPtr p)