src/Builder4/PopoverFileDetails.bjs
authorAlan <alan@roojs.com>
Thu, 4 Jan 2024 10:19:24 +0000 (18:19 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Jan 2024 10:19:24 +0000 (18:19 +0800)
src/Builder4/PopoverFileDetails.vala

src/Builder4/PopoverFileDetails.bjs
src/Builder4/PopoverFileDetails.vala

index 0488f0b..20ad509 100644 (file)
@@ -10,6 +10,7 @@
    "@ void success" : "(Project.Project pr, JsRender.JsRender file)",
    "Xcls_MainWindow mainwindow" : "null",
    "bool done" : false,
+   "bool is_new" : true,
    "bool modal" : true,
    "id" : "PopoverFileDetails",
    "items" : [
    "uint border_width" : 0,
    "xtype" : "Window",
    "| void show" : [
-    "(JsRender.JsRender? c, Gtk.Window pwin, bool new_window) ",
+    "(JsRender.JsRender  c, Gtk.Window pwin, bool new_window) ",
     "{",
     "    ",
     "    this.project = c.project;",
index 261e1c1..3ba1e9f 100644 (file)
@@ -41,6 +41,7 @@
         public Xcls_save_btn save_btn;
 
             // my vars (def)
+        public bool is_new;
         public bool new_window;
         public signal void success (Project.Project pr, JsRender.JsRender file);
         public JsRender.JsRender file;
@@ -56,6 +57,7 @@
             this.el = new Gtk.Window();
 
             // my vars (dec)
+            this.is_new = true;
             this.new_window = true;
             this.file = null;
             this.border_width = 0;
@@ -79,7 +81,7 @@
         }
 
         // user defined functions
-        public void show (JsRender.JsRender? c, Gtk.Window pwin, bool new_window) 
+        public void show (JsRender.JsRender  c, Gtk.Window pwin, bool new_window) 
         {
             
             this.project = c.project;