src/Builder4/PopoverEditor.bjs
authorAlan <alan@roojs.com>
Fri, 13 May 2022 04:00:29 +0000 (12:00 +0800)
committerAlan <alan@roojs.com>
Fri, 13 May 2022 04:00:29 +0000 (12:00 +0800)
src/Builder4/PopoverEditor.vala

src/Builder4/PopoverEditor.bjs
src/Builder4/PopoverEditor.vala

index 59299f0..2352bba 100644 (file)
@@ -24,6 +24,7 @@
    "| return_type setMainWindow" : [
     "(Xcls_MainWindow win) {",
     "\tthis.win = win",
+    "\tthis.editor.window = win;",
     "}",
     ""
    ],
index 6a788f9..a602e61 100644 (file)
@@ -47,6 +47,7 @@ public class Xcls_PopoverEditor : Object
     // user defined functions
     public return_type setMainWindow (Xcls_MainWindow win) {
        this.win = win
+       this.editor.window = win;
     }
     public void show (Gtk.Widget on_el, JsRender.JsRender file, JsRender.Node? node, string ptype, string key) {
        this.editor.show( file, node, ptype, key);