From 01811ec69a5da4983c7cf12972ff11176b7043fc Mon Sep 17 00:00:00 2001
From: Henning Stahlke <github@henningstahlke.de>
Date: Thu, 2 Jul 2020 10:00:43 +0200
Subject: [PATCH] canvas/gui.nas add missing return values

---
 Nasal/canvas/gui.nas | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Nasal/canvas/gui.nas b/Nasal/canvas/gui.nas
index e35a3861f..a929140cb 100644
--- a/Nasal/canvas/gui.nas
+++ b/Nasal/canvas/gui.nas
@@ -181,6 +181,7 @@ var Window = {
 
     # prevent resizing if canvas is placed from somewhere else
     me.onResize = nil;
+    return me;
   },
   # Get the displayed canvas
   getCanvas: func(create = 0)
@@ -240,6 +241,7 @@ var Window = {
 
     me.setInt("tf/t[0]", x);
     me.setInt("tf/t[1]", y);
+    return me;
   },
   setSize: func
   {
@@ -269,6 +271,7 @@ var Window = {
 
     me.setInt("tf/t[0]", me.get("tf/t[0]", 10) + x);
     me.setInt("tf/t[1]", me.get("tf/t[1]", 30) + y);
+    return me;
   },
   # Raise to top of window stack
   raise: func()