Builder/LeftPanel.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 04:42:37 +0000 (12:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 04:42:37 +0000 (12:42 +0800)
Builder/LeftPanel.js

index 8b65c1b..46903ea 100755 (executable)
@@ -281,7 +281,7 @@ LeftPanel = new XObject({
                         /**
                          * start editing path (or selected if not set..)
                          */
-                        startEditing : function(path)
+                        startEditing : function(path, col)
                         {
                             
                             var tp;
@@ -293,6 +293,13 @@ LeftPanel = new XObject({
                                 s.get_selected(this.el, iter);
                                 tp = this.el.get_path(iter);
                             }
+                            colObj = false;
+                            if (typeof(col) == 'undefined') {
+                                colObj = (!k.length || k == '|') ? 
+                                    LeftPanel.propertyColumn : LeftPanel.editableColumn;
+                            } else {
+                                colObj = col ? LeftPanel.propertyColumn : LeftPanel.editableColumn;
+                            }
                             // iter now has row...
                             GLib.timeout_add(0, 100, function() {
                                 var col = (!k.length || k == '|') ?