FixBug.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2012 14:34:22 +0000 (22:34 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2012 14:34:22 +0000 (22:34 +0800)
FixBug.js

FixBug.bjs
FixBug.js

index 85b31f5..f45b0ee 100644 (file)
             "|show": "function(c) {\n    \n    if (!this.el) {\n        this.init();\n    }\n    var _this = this;\n    /*[ 'xtype'  ].forEach(function(k) {\n        _this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);\n    });\n\t// shouild set path..\n    */\n\n    \n    this.el.show_all();\n    this.get('/ok_button').el.set_sensitive(false);\n    \n    // block until we return.\n    var run_ret = this.el.run();\n    if (run_ret < 1 ) {\n        return false;\n    }\n    print(\"RUN RETURN : \" + run_ret);\n    \n    //print(JSON.stringify(this.get('bug').getValue()));\n    return this.get('bug').getValue();\n    //this.success = c.success;\n}\n",
             "|xns": "Gtk",
             "items": [
-                {
-                    "xtype": "HBox",
-                    "|xns": "Gtk",
-                    "items": [
-                        {
-                            "label": "Not working on Project",
-                            "pack": "add_action_widget,0",
-                            "xtype": "Button",
-                            "|xns": "Gtk"
-                        },
-                        {
-                            "id": "ok_button",
-                            "label": "Working on Selected Ticket",
-                            "pack": "add_action_widget,1",
-                            "xtype": "Button",
-                            "|xns": "Gtk"
-                        }
-                    ]
-                },
                 {
                     "pack": "add",
                     "xtype": "VBox",
                                     ]
                                 }
                             ]
+                        },
+                        {
+                            "xtype": "HBox",
+                            "|xns": "Gtk",
+                            "pack": false,
+                            "items": [
+                                {
+                                    "label": "Not working on Project",
+                                    "pack": "add_action_widget,0",
+                                    "xtype": "Button",
+                                    "|xns": "Gtk"
+                                },
+                                {
+                                    "id": "ok_button",
+                                    "label": "Working on Selected Ticket",
+                                    "pack": "add_action_widget,1",
+                                    "xtype": "Button",
+                                    "|xns": "Gtk"
+                                }
+                            ]
                         }
                     ]
                 }
index 764c415..24ad0c9 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -74,22 +74,6 @@ FixBug=new XObject({
         //this.success = c.success;
     },
     items : [
-        {
-            xtype: Gtk.HBox,
-            items : [
-                {
-                    xtype: Gtk.Button,
-                    label : "Not working on Project",
-                    pack : "add_action_widget,0"
-                },
-                {
-                    xtype: Gtk.Button,
-                    id : "ok_button",
-                    label : "Working on Selected Ticket",
-                    pack : "add_action_widget,1"
-                }
-            ]
-        },
         {
             xtype: Gtk.VBox,
             pack : "add",
@@ -329,6 +313,23 @@ FixBug=new XObject({
                             ]
                         }
                     ]
+                },
+                {
+                    xtype: Gtk.HBox,
+                    pack : false,
+                    items : [
+                        {
+                            xtype: Gtk.Button,
+                            label : "Not working on Project",
+                            pack : "add_action_widget,0"
+                        },
+                        {
+                            xtype: Gtk.Button,
+                            id : "ok_button",
+                            label : "Working on Selected Ticket",
+                            pack : "add_action_widget,1"
+                        }
+                    ]
                 }
             ]
         }