Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 12:31:44 +0000 (20:31 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 12:31:44 +0000 (20:31 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index f4d45ab..72b704d 100644 (file)
                                         {
                                             "listeners" : {
                                                 "button_press_event" : " ( ev) => {\n    //console.log(\"button press?\");\n   \n    \n    if (ev.type != Gdk.EventType.BUTTON_PRESS  || ev.button != 3) {\n        //print(\"click\" + ev.type);\n        return false;\n    }\n    //Gtk.TreePath res;\n    //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {\n    //    return true;\n    //}\n     \n  //  this.el.get_selection().select_path(res);\n     \n      //if (!this.get('/LeftTreeMenu').el)  { \n      //      this.get('/LeftTreeMenu').init(); \n      //  }\n        \n     _this.targets_tree_menu.el.set_screen(Gdk.Screen.get_default());\n     _this.targets_tree_menu.el.show_all();\n      _this.targets_tree_menu.el.popup(null, null, null,  3, ev.time);\n     //   print(\"click:\" + res.path.to_string());\n      return true;\n}",
-                                                "cursor_changed" : " ( ) => {\n\n    if (this.cursor != \"\") {\n         // save the values..\n     }\n     \n     // load the new values.\n     \n\n         Gtk.TreeModel mod;\n        Gtk.TreeIter iter;\n        if (!this.el.get_selection().get_selected(out mod, out iter)) {\n               print(\"nothing selected\\n\");\n            return;\n        }\n\n            \n       // add the directory..\n       \n       \n       GLib.Value val;\n        mod.get_value(iter,0, out val);\n       var fn =  (string) val;\n       \n       this.cursor = fn;\n       var cg = _this.project.compilegroups.get(fn);\n       this.build_pack_target.el.set_text(fn.target_bin);\n       this.build_compile_flags.el.set_text(fn.compile_flags);\n       // load the srouces\n\n\n  }"
+                                                "cursor_changed" : " ( ) => {\n\n    if (this.cursor != \"\") {\n         // save the values..\n     }\n     \n     // load the new values.\n     \n\n         Gtk.TreeModel mod;\n        Gtk.TreeIter iter;\n        if (!this.el.get_selection().get_selected(out mod, out iter)) {\n               print(\"nothing selected\\n\");\n            return;\n        }\n\n            \n       // add the directory..\n       \n       \n       GLib.Value val;\n        mod.get_value(iter,0, out val);\n       var fn =  (string) val;\n       \n       this.cursor = fn;\n       var cg = _this.project.compilegroups.get(fn);\n       _this.build_pack_target.el.set_text(fn.target_bin);\n       _this.build_compile_flags.el.set_text(fn.compile_flags);\n       // load the srouces\n\n\n  }"
                                             },
                                             "id" : "targets_tree",
                                             "# string cursor" : "",
index fdefbd0..ba5724e 100644 (file)
@@ -1132,8 +1132,8 @@ public class ValaProjectSettings : Object
                    
                    this.cursor = fn;
                    var cg = _this.project.compilegroups.get(fn);
-                   this.build_pack_target.el.set_text(fn.target_bin);
-                   this.build_compile_flags.el.set_text(fn.compile_flags);
+                   _this.build_pack_target.el.set_text(fn.target_bin);
+                   _this.build_compile_flags.el.set_text(fn.compile_flags);
                    // load the srouces