1
0
Fork 0

Small cleanup.

This commit is contained in:
Thomas Geymayer 2013-05-31 19:30:48 +02:00
parent c242809a3c
commit 3d3475e965
2 changed files with 3 additions and 6 deletions

View file

@ -95,12 +95,7 @@ CanvasWidget::CanvasWidget( int x, int y,
CanvasWidget::~CanvasWidget()
{
if( _canvas )
// TODO check if really not in use anymore
_canvas->getProps()
->getParent()
->removeChild( _canvas->getProps()->getName(),
_canvas->getProps()->getIndex(),
false );
_canvas->destroy();
}
// Old versions of PUI are missing this defines...

View file

@ -181,6 +181,8 @@ naRef initNasalCanvas(naRef globals, naContext c, naRef gcSave)
.member("screenY", &sc::MouseEvent::getScreenY)
.member("clientX", &sc::MouseEvent::getClientX)
.member("clientY", &sc::MouseEvent::getClientY)
.member("localX", &sc::MouseEvent::getLocalX)
.member("localY", &sc::MouseEvent::getLocalY)
.member("deltaX", &sc::MouseEvent::getDeltaX)
.member("deltaY", &sc::MouseEvent::getDeltaY)
.member("click_count", &sc::MouseEvent::getCurrentClickCount);