Builder4/WindowLeftProps.js
Builder4/WindowLeftProps.vala
"button_press_event": " ( ev) => {\n\n _this.before_edit();\n \n Gtk.TreeViewColumn col;\n int cell_x;\n int cell_y;\n Gtk.TreePath path;\n if (!this.el.get_path_at_pos((int)ev.x, (int) ev.y, out path, out col, out cell_x, out cell_y )) {\n return false; //not on a element.\n }\n \n // right click.\n if (ev.type == Gdk.EventType.BUTTON_PRESS && ev.button == 3) { \n // show popup!. \n if (col.title == \"value\") {\n return false;\n }\n\n var p = _this.ContextMenu;\n\n p.el.set_screen(Gdk.Screen.get_default());\n p.el.show_all();\n p.el.popup(null, null, null, ev.button, ev.time);\n //Seed.print(\"click:\" + res.column.title);\n \n \n return false;\n }\n \n \n if (col.title != \"value\") {\n // XObject.error(\"column is not value?\");\n return false; // ignore.. - key click.. ??? should we do this??\n }\n \n // currently editing???\n// if ( this.activePath) {\n \n // this.activePath = false;\n // stop editing!!!!\n /*\n if (this.get('/Editor').dirty) {\n //if (!this.get('/Editor.buffer').checkSyntax()) {\n // this.get('/StandardErrorDialog').show(\"Fix errors in code and save..\"); \n // return true;\n // // error Dialog\n //}\n if (!this.get('/Editor.view').save()) {\n return true;\n }\n } \n */\n \n //this.EditProps.editableColumn.items[0].el.stop_editing();\n //this.EditProps.editing = false;\n \n // XObject.error(\"Currently editing?\");\n // return false;\n // }\n \n // var renderer = this.valrender.el; // set has_entry..\n \n //var type = this.get('/LeftPanel.model').getType(res.path.to_string());\n \n // get options for this type -- this is to support option lists etc..\n //var provider = this.get('/LeftTree').getPaleteProvider();\n //var opts = provider.findOptions(type);\n \n// if (opts === false) {\n // it's text etnry\n// this.get('/LeftPanel').editableColumn.setOptions([]);\n// renderer.has_entry = true;\n// } else {\n// this.get('/LeftPanel').editableColumn.setOptions(opts);\n// renderer.has_entry = false;\n// }\n _this.startEditingValue(); // assumes selected row..\n \n //Seed.print(\"click\" + ev.type);\n //console.dump(res);\n return false;\n\n \n \n}"
},
"id": "view",
- "tooltip_column": 5,
+ "tooltip_column": 4,
"xtype": "TreeView",
"|enable_tree_lines": "true",
"|headers_visible": "false",
}
},
id : "view",
- tooltip_column : 5,
+ tooltip_column : 4,
enable_tree_lines : true,
headers_visible : false,
init : {
// set gobject values
this.el.enable_tree_lines = true;
this.el.headers_visible = false;
- this.el.tooltip_column = 5;
+ this.el.tooltip_column = 4;
var child_0 = new Xcls_model( _this );
child_0.ref();
this.el.set_model ( child_0.el );