Small cleanup.
This commit is contained in:
parent
c242809a3c
commit
3d3475e965
2 changed files with 3 additions and 6 deletions
|
@ -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...
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue