From: John L. <jr...@us...> - 2008-01-20 19:23:34
|
Update of /cvsroot/wxlua/wxLua/apps/wxluafreeze/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32640/wxLua/apps/wxluafreeze/src Modified Files: wxluafreeze.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: wxluafreeze.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluafreeze/src/wxluafreeze.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** wxluafreeze.cpp 17 Jan 2008 15:19:57 -0000 1.15 --- wxluafreeze.cpp 20 Jan 2008 19:23:00 -0000 1.16 *************** *** 124,127 **** --- 124,132 ---- m_fileName = argv[0]; // the filename of 'this' program + // 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); if (!m_wxlState.Ok()) |