Lua GUI Instance update: prepare for template scripts
This commit is contained in:
parent
e4cb6e1894
commit
c37cdf548d
@ -920,7 +920,9 @@ using namespace ARDOUR_UI_UTILS;
|
||||
using namespace PBD;
|
||||
using namespace std;
|
||||
|
||||
static void _lua_print (std::string s) {
|
||||
void
|
||||
LuaInstance::_lua_print (std::string s)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
std::cout << "LuaInstance: " << s << "\n";
|
||||
#endif
|
||||
@ -1694,7 +1696,7 @@ LuaCallback::get_state (void)
|
||||
void
|
||||
LuaCallback::init (void)
|
||||
{
|
||||
lua.Print.connect (&_lua_print);
|
||||
lua.Print.connect (&LuaInstance::_lua_print);
|
||||
lua.sandbox (false);
|
||||
|
||||
lua.do_command (
|
||||
|
@ -91,6 +91,8 @@ public:
|
||||
|
||||
static void render_action_icon (cairo_t* cr, int w, int h, uint32_t c, void* i);
|
||||
|
||||
static void _lua_print (std::string s);
|
||||
|
||||
void set_session (ARDOUR::Session* s);
|
||||
|
||||
int set_state (const XMLNode&);
|
||||
|
Loading…
Reference in New Issue
Block a user