done obj is optional
authorAlan <alan@roojs.com>
Thu, 4 Jan 2024 10:45:39 +0000 (18:45 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Jan 2024 10:45:39 +0000 (18:45 +0800)
src/Builder4/ValaProjectSettingsPopover.bjs
src/Builder4/ValaProjectSettingsPopover.vala

index df33c1b..a660e0d 100644 (file)
@@ -8,7 +8,6 @@
    "Project.Gtk project" : "null",
    "Project.GtkValaSettings? selected_target" : "null",
    "Xcls_MainWindow window" : "null",
-   "bool autohide" : false,
    "bool done" : false,
    "bool modal" : true,
    "items" : [
            "if (_this.doneObj != null) {",
            "\t_this.doneObj.call(_this.project);",
            "}",
-           "// hopefull this will work with bjs files..",
-           "\t",
            " ",
            "   ",
            "}"
     "}"
    ],
    "| void show" : [
-    "(Gtk.Window pwin, Project.Gtk project, Project.Callback doneObj) {",
+    "(Gtk.Window pwin, Project.Gtk project, Project.Callback? doneObj) {",
     "     ",
     "    //print(\"ValaProjectSettings show\\n\");",
     "    this.doneObj = doneObj;",
index cdbf088..c58c46a 100644 (file)
@@ -41,7 +41,6 @@
         public uint border_width;
         public bool done;
         public Project.Gtk project;
-        public bool autohide;
 
         // ctor
         public ValaProjectSettingsPopover()
@@ -56,7 +55,6 @@
             this.border_width = 0;
             this.done = false;
             this.project = null;
-            this.autohide = false;
 
             // set gobject values
             this.el.modal = true;
@@ -82,7 +80,7 @@
         }
 
         // user defined functions
-        public void show (Gtk.Window pwin, Project.Gtk project, Project.Callback doneObj) {
+        public void show (Gtk.Window pwin, Project.Gtk project, Project.Callback? doneObj) {
              
             //print("ValaProjectSettings show\n");
             this.doneObj = doneObj;
                 if (_this.doneObj != null) {
                        _this.doneObj.call(_this.project);
                 }
-                // hopefull this will work with bjs files..
-                       
                  
                    
                 });