return false;
}
});
- print(rec);
+ // update the text box with the ticket data..
+ this.get('/view').show(rec);
+ //print(rec);
}
},
items : [
{
xtype: Gtk.TextView,
- editable : false,
id : "view",
indent_width : 4,
pack : "add",
auto_indent : true,
+ editable : false,
init : function() {
XObject.prototype.init.call(this);
var description = Pango.font_description_from_string("monospace");
+ },
+ show : function(p) {
+ var line = [
+ 'Status : ' + p.status_name,
+ 'ID : ' + p.id,
+ '',
+ 'Summary : ' + p.summary,
+ '' +
+ p.description,
+ ].join("\n") ;
+ print(line);
+
+
+ // can not do rich text due to so many missing features..
+ this.el.get_buffer().set_text(line, line.length);
+
},
show_line_numbers : true,
items : [