Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24974/wxLua/bindings/wxwidgets
Modified Files:
wxcore_override.hpp
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_override.hpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxcore_override.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** wxcore_override.hpp 13 Dec 2007 06:23:53 -0000 1.11
--- wxcore_override.hpp 15 Dec 2007 16:56:40 -0000 1.12
***************
*** 1077,1081 ****
wxWindowID lastId = wxID_ANY;
wxEventType eventType = 0;
! wxLuaCallback *pCallback = NULL;
int nParams = lua_gettop(L);
--- 1077,1081 ----
wxWindowID lastId = wxID_ANY;
wxEventType eventType = 0;
! wxLuaEventCallback *pCallback = NULL;
int nParams = lua_gettop(L);
***************
*** 1175,1179 ****
// Create and connect the callback
! pCallback = new wxLuaCallback(wxlState, nParams, winId, lastId, eventType, evtHandler);
return 0;
--- 1175,1179 ----
// Create and connect the callback
! pCallback = new wxLuaEventCallback(wxlState, nParams, winId, lastId, eventType, evtHandler);
return 0;
***************
*** 1265,1269 ****
// Try to disconnect from the callback
! bool returns = evtHandler->Disconnect(winId, lastId, eventType, (wxObjectEventFunction)&wxLuaCallback::EventHandler);
lua_pushboolean(L, returns);
--- 1265,1269 ----
// Try to disconnect from the callback
! bool returns = evtHandler->Disconnect(winId, lastId, eventType, (wxObjectEventFunction)&wxLuaEventCallback::EventHandler);
lua_pushboolean(L, returns);
|