From: John L. <jr...@us...> - 2008-01-20 19:23:34
|
Update of /cvsroot/wxlua/wxLua/apps/wxlua/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32640/wxLua/apps/wxlua/src Modified Files: wxlua.cpp Log Message: - Added static bool wxLuaState::sm_wxAppMainLoop_will_run so that Lua code that calls "wx.wxGetApp:MainLoop()" will not do anything. C++ coders should call it if they create a wxLuaState and run Lua code from their wxApp:OnInit() when wxApp:IsMainLoopRunning() returns false. Added luamodule_mono to wxLua.dsw Index: wxlua.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxlua/src/wxlua.cpp,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** wxlua.cpp 15 Jan 2008 06:31:05 -0000 1.51 --- wxlua.cpp 20 Jan 2008 19:23:00 -0000 1.52 *************** *** 149,152 **** --- 149,156 ---- WXLUA_IMPLEMENT_BIND_ALL + // When this function returns wxApp:MainLoop() will be called by wxWidgets + // and so we want the Lua code wx.wxGetApp:MailLoop() to not + // prematurely start it. + wxLuaState::sm_wxAppMainLoop_will_run = true; m_wxlState = wxLuaState(this, wxID_ANY); |