Merger.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 12 Sep 2011 09:20:57 +0000 (17:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 12 Sep 2011 09:20:57 +0000 (17:20 +0800)
Merger.bjs

index 0b3fbf7..02c6f24 100644 (file)
                                                     "id": "changedFilesView",
                                                     "pack": "add",
                                                     "xtype": "TreeView",
-                                                    "|files": "function() {\n    \n}\n",
+                                                    "|files": "function() {\n     if (this.el.get_selection().count_selected_rows() < 1) {\n        //nothing? - clea it?\n        return [];\n    }\n\n    var ret = {};         \n    var model = this.get('/changedFilesStore');\n\n     var s = this.el.get_selection();\n     var files = [];\n      s.selected_foreach(function(model,p,iter) {\n    \n       files.push( model.get_value(iter, 0).value.get_string());\n     \n    });\n    return files;\n}\n",
                                                     "|init": "function() {\n    XObject.prototype.init.call(this);\n        var description = new Pango.FontDescription.c_new();\n   description.set_size(8000);\n     this.el.modify_font(description);\n\n     this.selection = this.el.get_selection();\n      this.selection.set_mode( Gtk.SelectionMode.MULTIPLE);\n    var _this = this;\n  this.selection.signal['changed'].connect(function() {\n     _this.listeners.cursor_changed.apply(\n          _this, [ _this, '']\n       );\n             });\n  }\n",
                                                     "|xns": "Gtk",
                                                     "items": [