src/Builder4/ValaProjectSettingsPopover.bjs
authorAlan <alan@roojs.com>
Fri, 19 Jan 2024 06:15:09 +0000 (14:15 +0800)
committerAlan <alan@roojs.com>
Fri, 19 Jan 2024 06:15:09 +0000 (14:15 +0800)
src/Builder4/ValaProjectSettingsPopover.vala

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

index c54ef39..d6e4632 100644 (file)
                      "\tvar jr = (JsRender.JsRender) lr.get_item();",
                      "\t//GLib.debug(\"change  %s to %s\", lbl.label, np.name);",
                      "",
-                     "\tbtn.active = jr.compile_group_selected;",
+                     "\t//btn.active = jr.compile_group_selected;",
                      "\t ",
-                     "// \tjr.bind_property(\"compile_group_selected\",",
-                     "  //                  btn, \"active\",",
-                     "//                   GLib.BindingFlags.SYNC_CREATE); ",
+                     " \tjr.bind_property(\"compile_group_selected\",",
+                     "                    btn, \"active\",",
+                     "                   GLib.BindingFlags.BIDIRECTIONAL); ",
                      " \t// bind image...",
                      " \t",
                      "}"
index db83f7d..a3b6dad 100644 (file)
@@ -1332,11 +1332,11 @@ public class ValaProjectSettingsPopover : Object
                                var jr = (JsRender.JsRender) lr.get_item();
                                //GLib.debug("change  %s to %s", lbl.label, np.name);
                        
-                               btn.active = jr.compile_group_selected;
+                               //btn.active = jr.compile_group_selected;
                                 
-                       //      jr.bind_property("compile_group_selected",
-                         //                  btn, "active",
-                       //                   GLib.BindingFlags.SYNC_CREATE); 
+                               jr.bind_property("compile_group_selected",
+                                           btn, "active",
+                                          GLib.BindingFlags.BIDIRECTIONAL); 
                                // bind image...
                                
                        });