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

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index 34eadfb..f4d45ab 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 94bd8b6..fdefbd0 100644 (file)
@@ -1117,7 +1117,7 @@ public class ValaProjectSettings : Object
             
                      Gtk.TreeModel mod;
                     Gtk.TreeIter iter;
-                    if (!_this.el.get_selection().get_selected(out mod, out iter)) {
+                    if (!this.el.get_selection().get_selected(out mod, out iter)) {
                            print("nothing selected\n");
                         return;
                     }