src/Builder4/GladeuiView.bjs
authorAlan <alan@roojs.com>
Mon, 30 May 2022 03:01:52 +0000 (11:01 +0800)
committerAlan <alan@roojs.com>
Mon, 30 May 2022 03:01:52 +0000 (11:01 +0800)
src/Builder4/GladeuiView.vala

src/Builder4/GladeuiView.bjs
src/Builder4/GladeuiView.vala

index a051447..6851f93 100644 (file)
     "",
     "//        print(\"%s\\n\",tf.tree.toJsonString());",
     "\tvar x =  new JsRender.NodeToGlade((Project.Gtk) file.project, file.tree,  null);",
-    "",
+    "    Glade.App.set_window(_this.main_window.el);",
     "\t ",
     "FileIOStream iostream;",
     "\tvar  f = File.new_tmp (\"tpl-XXXXXX.glade\", out iostream);",
index 97d999d..63edfd0 100644 (file)
@@ -159,7 +159,7 @@ public class Xcls_GladeuiView : Object
     
     //        print("%s\n",tf.tree.toJsonString());
        var x =  new JsRender.NodeToGlade((Project.Gtk) file.project, file.tree,  null);
-    
+        Glade.App.set_window(_this.main_window.el);
         
     FileIOStream iostream;
        var  f = File.new_tmp ("tpl-XXXXXX.glade", out iostream);