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() CanvasWidget::~CanvasWidget()
{ {
if( _canvas ) if( _canvas )
// TODO check if really not in use anymore _canvas->destroy();
_canvas->getProps()
->getParent()
->removeChild( _canvas->getProps()->getName(),
_canvas->getProps()->getIndex(),
false );
} }
// Old versions of PUI are missing this defines... // 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("screenY", &sc::MouseEvent::getScreenY)
.member("clientX", &sc::MouseEvent::getClientX) .member("clientX", &sc::MouseEvent::getClientX)
.member("clientY", &sc::MouseEvent::getClientY) .member("clientY", &sc::MouseEvent::getClientY)
.member("localX", &sc::MouseEvent::getLocalX)
.member("localY", &sc::MouseEvent::getLocalY)
.member("deltaX", &sc::MouseEvent::getDeltaX) .member("deltaX", &sc::MouseEvent::getDeltaX)
.member("deltaY", &sc::MouseEvent::getDeltaY) .member("deltaY", &sc::MouseEvent::getDeltaY)
.member("click_count", &sc::MouseEvent::getCurrentClickCount); .member("click_count", &sc::MouseEvent::getCurrentClickCount);