Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv12109/wxLua/bindings/wxwidgets
Modified Files:
wxbase_override.hpp wxcore_override.hpp
Log Message:
Add parameter to wxLuaState::RemoveTrackedObject to select how we untrack it
Fixes removing derived methods for the %ungc binding tag
Index: wxbase_override.hpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxbase_override.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** wxbase_override.hpp 16 Jul 2007 19:34:24 -0000 1.1
--- wxbase_override.hpp 22 Jul 2007 04:38:28 -0000 1.2
***************
*** 180,184 ****
// we may not be tracked, but delete us anyway
! if (!wxlState.RemoveTrackedObject(self))
delete self;
--- 180,184 ----
// we may not be tracked, but delete us anyway
! if (!wxlState.RemoveTrackedObject(self, wxLuaState::DELETE_OBJECT|wxLuaState::CLEAR_LUA_TRACKED|wxLuaState::CLEAR_DERIVED_METHODS))
delete self;
Index: wxcore_override.hpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxcore_override.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** wxcore_override.hpp 16 Jul 2007 19:34:25 -0000 1.1
--- wxcore_override.hpp 22 Jul 2007 04:38:28 -0000 1.2
***************
*** 2438,2443 ****
// we must disconnect them from our tracking list
if (printoutForPrinting != NULL)
! wxlState.RemoveTrackedObject(printoutForPrinting, false);
! wxlState.RemoveTrackedObject(printout, false);
// call constructor
--- 2438,2443 ----
// we must disconnect them from our tracking list
if (printoutForPrinting != NULL)
! wxlState.RemoveTrackedObject(printoutForPrinting, wxLuaState::UNDELETE);
! wxlState.RemoveTrackedObject(printout, wxLuaState::UNDELETE);
// call constructor
|