gtkhotkey-0.2.1-patched.tgz
[gitlive] / FixBug.js
index fd88f39..813382c 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -252,8 +252,8 @@ FixBug=new XObject({
                                                         }
                                                     });
                                                     // update the text box with the ticket data..
-                                                    
-                                                    print(rec);
+                                                    this.get('/view').show(rec);
+                                                    //print(rec);
                                                 
                                                 }
                                             },
@@ -430,11 +430,11 @@ FixBug=new XObject({
                                             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");
@@ -457,6 +457,22 @@ FixBug=new XObject({
                                                          
                                                          
                                                         
+                                                    },
+                                                    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 : [