Revision: 625
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=625&view=rev
Author: andy_miller
Date: 2008-06-28 05:14:12 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
Change order of CEGUI dynamic cast so Tree is before Window...
Modified Paths:
--------------
trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
Modified: trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
===================================================================
--- trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-06-28 09:06:31 UTC (rev 624)
+++ trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-06-28 12:14:12 UTC (rev 625)
@@ -169,14 +169,6 @@
boost::python::call<void>(mSubscriber,
static_cast<const CEGUI::MouseEventArgs&>(args) );
- else if (dynamic_cast<CEGUI::WindowEventArgs *>((CEGUI::EventArgs *)&args))
- if (mMethod.length() > 0 )
- boost::python::call_method<void>(mSubscriber, mMethod.c_str(),
- static_cast<const CEGUI::WindowEventArgs&>(args) );
- else
- boost::python::call<void>(mSubscriber,
- static_cast<const CEGUI::WindowEventArgs&>(args) );
-
else if (dynamic_cast<CEGUI::TreeEventArgs *>((CEGUI::EventArgs *)&args))
if (mMethod.length() > 0 )
boost::python::call_method<void>(mSubscriber, mMethod.c_str(),
@@ -185,6 +177,14 @@
boost::python::call<void>(mSubscriber,
static_cast<const CEGUI::TreeEventArgs&>(args) );
+ else if (dynamic_cast<CEGUI::WindowEventArgs *>((CEGUI::EventArgs *)&args))
+ if (mMethod.length() > 0 )
+ boost::python::call_method<void>(mSubscriber, mMethod.c_str(),
+ static_cast<const CEGUI::WindowEventArgs&>(args) );
+ else
+ boost::python::call<void>(mSubscriber,
+ static_cast<const CEGUI::WindowEventArgs&>(args) );
+
else
boost::python::call_method<void>(mSubscriber, mMethod.c_str(), args );
return true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|