FixBug.bjs
authorAlan Knowles <alan@akbkhome.com>
Sat, 5 Jan 2013 15:37:46 +0000 (23:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 5 Jan 2013 15:37:46 +0000 (23:37 +0800)
FixBug.js

FixBug.bjs
FixBug.js

index 1be751e..daaec49 100644 (file)
                                                             "|editable": "false",
                                                             "|init": "function() {\n    XObject.prototype.init.call(this);\n    var description = Pango.font_description_from_string(\"monospace\");\n\n    description.set_size(8000);\n    this.el.modify_font(description);\n\n}\n",
                                                             "|load": "function(str) {\n\n// show the help page for the active node..\n \n\n\n \n    this.el.get_buffer().set_text(str, str.length);\n \n    \n     var buf = this.el.get_buffer();\n     \n     \n    \n}",
-                                                            "|show": "function(p) {\n     var line =    '[' + p.status_name + '] <b>'   + \n             GLib.markup_escape_text(p.summary, p.summary.length)  + \"</b>\\n\"  +\n             '<span color=\"#666\">' + \n             GLib.markup_escape_text(p.description,p.description.length) +\n             '</span>';\n         print(line);\n         \n          this.el.get_buffer().set_text(line, line.length);\n \n}\n",
+                                                            "|show": "function(p) {\n     var line =  [\n            'Status : ' +   p.status_name,\n            'ID : ' +   p.id,\n            '',\n            'Summary :  ' +  p.summary,\n             '' + \n             p.description,\n         ].join(\"\\n\")   ;\n         print(line);\n         \n          this.el.get_buffer().set_text(line, line.length);\n \n}\n",
                                                             "|show_line_numbers": true,
                                                             "|xns": "Gtk",
                                                             "items": [
index 3cf3be8..d80f387 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -459,11 +459,14 @@ FixBug=new XObject({
                                                         
                                                     },
                                                     show : function(p) {
-                                                         var line =    '[' + p.status_name + '] <b>'   + 
-                                                                 GLib.markup_escape_text(p.summary, p.summary.length)  + "</b>\n"  +
-                                                                 '<span color="#666">' + 
-                                                                 GLib.markup_escape_text(p.description,p.description.length) +
-                                                                 '</span>';
+                                                         var line =  [
+                                                                'Status : ' +   p.status_name,
+                                                                'ID : ' +   p.id,
+                                                                '',
+                                                                'Summary :  ' +  p.summary,
+                                                                 '' + 
+                                                                 p.description,
+                                                             ].join("\n")   ;
                                                              print(line);
                                                              
                                                               this.el.get_buffer().set_text(line, line.length);