From: John L. <jr...@us...> - 2007-12-15 16:56:45
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24974/wxLua/modules/wxbind/src Modified Files: wxcore_event.cpp Log Message: * Changed signature of the function wxLuaState::SetLuaDebugHook() so that the inputs to lua_sethook() are together and in the same order. - Renamed wxLuaCallback to wxLuaEventCallback to make it more clear that it is a callback for the wxEvents using wxEvtHandlers. Cleaned up the comments in the headers. Index: wxcore_event.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_event.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** wxcore_event.cpp 13 Dec 2007 00:47:49 -0000 1.8 --- wxcore_event.cpp 15 Dec 2007 16:56:40 -0000 1.9 *************** *** 74,78 **** wxWindowID lastId = wxID_ANY; wxEventType eventType = 0; ! wxLuaCallback *pCallback = NULL; int nParams = lua_gettop(L); --- 74,78 ---- wxWindowID lastId = wxID_ANY; wxEventType eventType = 0; ! wxLuaEventCallback *pCallback = NULL; int nParams = lua_gettop(L); *************** *** 172,176 **** // Create and connect the callback ! pCallback = new wxLuaCallback(wxlState, nParams, winId, lastId, eventType, evtHandler); return 0; --- 172,176 ---- // Create and connect the callback ! pCallback = new wxLuaEventCallback(wxlState, nParams, winId, lastId, eventType, evtHandler); return 0; *************** *** 265,269 **** // Try to disconnect from the callback ! bool returns = evtHandler->Disconnect(winId, lastId, eventType, (wxObjectEventFunction)&wxLuaCallback::EventHandler); lua_pushboolean(L, returns); --- 265,269 ---- // Try to disconnect from the callback ! bool returns = evtHandler->Disconnect(winId, lastId, eventType, (wxObjectEventFunction)&wxLuaEventCallback::EventHandler); lua_pushboolean(L, returns); |