]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal: expose missing Canvas::setLayout
authorThomas Geymayer <tomgey@gmail.com>
Thu, 26 Jun 2014 16:26:43 +0000 (18:26 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 26 Jun 2014 16:26:43 +0000 (18:26 +0200)
src/Scripting/NasalCanvas.cxx

index 64619a1d194b01c16d05ef475ee4af99d44fac3a..63dad82b49f90ececc11f163f612ac5968c02a5e 100644 (file)
@@ -445,7 +445,8 @@ naRef initNasalCanvas(naRef globals, naContext c)
              static_cast<bool (sc::Canvas::*)( const std::string&,
                                                const sc::EventListener& )>
              (&sc::Canvas::addEventListener) )
-    .method("dispatchEvent", &sc::Canvas::dispatchEvent);
+    .method("dispatchEvent", &sc::Canvas::dispatchEvent)
+    .method("setLayout", &sc::Canvas::setLayout);
 
   canvas_module.set("_newCanvasGhost", f_createCanvas);
   canvas_module.set("_getCanvasGhost", f_getCanvas);