src/Builder4/EditProject.bjs
authorAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:37:09 +0000 (17:37 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:37:09 +0000 (17:37 +0800)
src/Builder4/EditProject.vala

src/Builder4/EditProject.bjs
src/Builder4/EditProject.vala

index c1b02ae..19da207 100644 (file)
@@ -4,7 +4,7 @@
  "items" : [
   {
    "# WindowState? windowstate" : "null",
-   "$ GLib.VoidFunc? donefunc" : "null",
+   "$ Project.Callback doneObj" : "null",
    "$ deletable" : true,
    "$ xns" : "Gtk",
    "@ void canceled" : "()",
     "}"
    ],
    "| void show" : [
-    "(GLib.VoidFunc donefunc) {",
-    "     this.donefunc = donefunc;",
+    "(Project.Callback doneObj) {",
+    "     this.doneObj= doneObj;",
     "    _this.hideAll(); ",
     "     // hide stuff..",
     "     _this.type_dd.el.selected = Gtk.INVALID_LIST_POSITION;",
index a5d9e52..8221a02 100644 (file)
@@ -25,8 +25,8 @@
         public Xcls_ptype_dd ptype_dd;
 
             // my vars (def)
+        public Project.Callback doneObj;
         public WindowState? windowstate;
-        public GLib.VoidFunc? donefunc;
         public signal void canceled ();
         public Project.Project result;
 
@@ -37,8 +37,8 @@
             this.el = new Gtk.Window();
 
             // my vars (dec)
+            this.doneObj = null;
             this.windowstate = null;
-            this.donefunc = null;
             this.result = null;
 
             // set gobject values
@@ -54,8 +54,8 @@
         }
 
         // user defined functions
-        public void show (GLib.VoidFunc donefunc) {
-             this.donefunc = donefunc;
+        public void show (Project.Callback doneObj) {
+             this.doneObj= doneObj;
             _this.hideAll(); 
              // hide stuff..
              _this.type_dd.el.selected = Gtk.INVALID_LIST_POSITION;