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

src/Builder4/ValaProjectSettingsPopover.bjs
src/Builder4/ValaProjectSettingsPopover.vala

index 667017f..4c88635 100644 (file)
@@ -3,7 +3,7 @@
  "gen_extended" : false,
  "items" : [
   {
-   "$ GLib.VoidFunc? donefunc" : "null",
+   "$ Project.Callback doneObj" : "null",
    "$ xns" : "Gtk",
    "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
    "Project.Gtk project" : "null",
     "}"
    ],
    "| void show" : [
-    "(Gtk.Window pwin, Project.Gtk project, GLib.VoidFunc? donefunc) {",
+    "(Gtk.Window pwin, Project.Gtk project, Project.Callback doneObj) {",
     "     ",
     "    //print(\"ValaProjectSettings show\\n\");",
-    "    this.donefunc = donefunc;",
+    "    this.doneObj = doneObj;",
     "    this.project=  project;",
     "\t ",
     "    this.compile_flags.el.buffer.set_text(",
index 10aa475..cb14ea5 100644 (file)
         public Xcls_save_btn save_btn;
 
             // my vars (def)
+        public Project.Callback doneObj;
         public Xcls_MainWindow window;
         public Gtk.PositionType position;
         public Project.GtkValaSettings? selected_target;
-        public GLib.VoidFunc? donefunc;
         public uint border_width;
         public bool done;
         public Project.Gtk project;
             this.el = new Gtk.Window();
 
             // my vars (dec)
+            this.doneObj = null;
             this.window = null;
             this.position = Gtk.PositionType.RIGHT;
             this.selected_target = null;
-            this.donefunc = null;
             this.border_width = 0;
             this.done = false;
             this.project = null;
         }
 
         // user defined functions
-        public void show (Gtk.Window pwin, Project.Gtk project, GLib.VoidFunc? donefunc) {
+        public void show (Gtk.Window pwin, Project.Gtk project, Project.Callback doneObj) {
              
             //print("ValaProjectSettings show\n");
-            this.donefunc = donefunc;
+            this.doneObj = doneObj;
             this.project=  project;
                 
             this.compile_flags.el.buffer.set_text(