src/Application.vala
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 09:00:13 +0000 (17:00 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 09:00:13 +0000 (17:00 +0800)
src/Application.vala

index 0e9f4e6..7582e44 100644 (file)
@@ -449,6 +449,18 @@ flutter-project  - create a flutter project in /tmp/test-flutter
                
                }
                
+               public void newWindow(JsRender.JsRender file, int line)
+               {
+                   var w = new Xcls_MainWindow();
+                       w.ref();
+                       this.application.addWindow(w);
+                       w.el.show_all();
+                       w.initChildren();
+                       w.windowstate. fileViewOpen(file, false, line);
+                        
+               
+               }
+               
                
         
        }