Builder4/WindowLeftProps.bjs
authorAlan Knowles <alan@akbkhome.com>
Sun, 13 Jul 2014 08:03:32 +0000 (16:03 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 13 Jul 2014 08:03:32 +0000 (16:03 +0800)
Builder4/WindowLeftProps.js
Builder4/WindowLeftProps.vala

Builder4/WindowLeftProps.bjs
Builder4/WindowLeftProps.js
Builder4/WindowLeftProps.vala

index 6e9f698..f252a43 100644 (file)
                             "|xns": "Gtk",
                             "items": [
                                 {
-                                    "|columns": "    typeof(Object),  // 0 real key\n    typeof(string),  // 1 property type (prop|event)\n    typeof(string),  // 2 real key\n    typeof(string),  // 4 visable key\n    typeof(string)  // 5 visable value\n     ",
                                     "id": "model",
-                                    "n_columns": 6,
+                                    "n_columns": 5,
                                     "pack": "set_model",
                                     "xtype": "TreeStore",
                                     "|changed": "function(str, doRefresh) {\n    if (!this.activePath) {\n        return;\n    }\n    var iter = new Gtk.TreeIter();\n    this.el.get_iter(iter, new Gtk.TreePath.from_string(this.activePath));\n    \n    this.el.set_value(iter, 1, '' +str);\n    this.el.set_value(iter, 3, '' + this.toShort(str));\n    var type = this.getIterValue(iter, 4);\n\n    this.el.set_value(iter, 5, type + ' : ' + str);\n    // update the tree...  \n\n    this.get('/LeftTree.model').changed(this.toJS(), doRefresh); \n}\n",
+                                    "|columns": "    typeof(Object),  // 0 real key\n    typeof(string),  // 1 property type (prop|event)\n    typeof(string),  // 2 real key\n    typeof(string),  // 4 visable key\n    typeof(string)  // 5 visable value\n     ",
                                     "|toShort": "function(str) {\n    var a = typeof(str) == 'string' ? str.split(\"\\n\") : [];\n        return a.length > 1 ? a[0] + '....' : '' + str;\n}\n",
                                     "|xns": "Gtk"
                                 },
index 94a29bc..f1b081b 100644 (file)
@@ -565,13 +565,8 @@ WindowLeftProps=new XObject({
                     items : [
                         {
                             xtype: Gtk.TreeStore,
-                            columns : typeof(Object),  // 0 real key
-                                typeof(string),  // 1 property type (prop|event)
-                                typeof(string),  // 2 real key
-                                typeof(string),  // 4 visable key
-                                typeof(string)  // 5 visable value,
                             id : "model",
-                            n_columns : 6,
+                            n_columns : 5,
                             pack : "set_model",
                             changed : function(str, doRefresh) {
                                 if (!this.activePath) {
@@ -589,6 +584,11 @@ WindowLeftProps=new XObject({
                             
                                 this.get('/LeftTree.model').changed(this.toJS(), doRefresh); 
                             },
+                            columns : typeof(Object),  // 0 real key
+                                typeof(string),  // 1 property type (prop|event)
+                                typeof(string),  // 2 real key
+                                typeof(string),  // 4 visable key
+                                typeof(string)  // 5 visable value,
                             toShort : function(str) {
                                 var a = typeof(str) == 'string' ? str.split("\n") : [];
                                     return a.length > 1 ? a[0] + '....' : '' + str;
index 6de2669..c319e94 100644 (file)
@@ -1186,7 +1186,7 @@ public class Xcls_LeftProps : Object
         {
             _this = _owner;
             _this.model = this;
-            this.el = new Gtk.TreeStore( 6,     typeof(Object),  // 0 real key
+            this.el = new Gtk.TreeStore( 5,     typeof(Object),  // 0 real key
     typeof(string),  // 1 property type (prop|event)
     typeof(string),  // 2 real key
     typeof(string),  // 4 visable key